3#if _MSC_VER >= 1900 && defined(_M_X64)
6#include "BackendLabel.h"
7#include "ComputationalGraphAugmentationBase.h"
16 class CInternalAugmentationMaskOperationForSegmentation;
19 class FL_EXPORT CComputationalGraphAugmentationMaskOperationForSegmentation :
public CComputationalGraphAugmentationBase<T>
22 CComputationalGraphAugmentationMaskOperationForSegmentation();
25 CComputationalGraphAugmentationMaskOperationForSegmentation(
const CComputationalGraphAugmentationMaskOperationForSegmentation<T>& cg);
29 CComputationalGraphAugmentationMaskOperationForSegmentation(
const CComputationalBase<T>& cbOperand,
const CAugmentationParameters& apParams);
30 CComputationalGraphAugmentationMaskOperationForSegmentation(
const CComputationalBase<T>& cbOperand,
const CAugmentationParameters* pApParams);
31 virtual ~CComputationalGraphAugmentationMaskOperationForSegmentation();
33 virtual CComputationalBase<T>* Clone()
const override;
34 virtual const CTensor<T>& GetMaskTensor()
const;
35 virtual CTensor<T>& Forward()
override;
37 virtual int64_t GetRequiredDedicatedMemory(
bool bTraining =
false,
bool bRecursively =
true, int64_t i64BatchSize = 1)
const override;
40 DeclareGetClassType();
41 SupportToDuplicateObjectWithoutCreateNewObject(CComputationalGraphAugmentationMaskOperationForSegmentation, *
this);
44 CTensor<T> m_tsrMaskTmpBuffer;
46 CBackendLabel<T> m_backendLabel;
48 DeclareGetSignletonObject(CComputationalGraphAugmentationMaskOperationForSegmentation);
52 template <
typename T>
friend class CInternalAugmentationMaskOperationForSegmentation;
55 #define CCGFAugmentationMaskOPSS(...) (*(new CComputationalGraphAugmentationMaskOperationForSegmentation<float>(__VA_ARGS__)))
56 #define CCGDAugmentationMaskOPSS(...) (*(new CComputationalGraphAugmentationMaskOperationForSegmentation<double>(__VA_ARGS__)))
58 #define CCGTAugmentationMaskOPSS(T, ...) (*(new CComputationalGraphAugmentationMaskOperationForSegmentation<T>(__VA_ARGS__)))
Augmentation Parameter Class By transforming the images, it increases the diversity of training image...
Definition AugmentationParameters.h:67
Definition AlgorithmAIBase.h:16