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;
39 virtual const CResult GetBinaryData(Base::CFLData& fldBinary,
bool bSuperClass =
false, int32_t i32Version = -1,
bool bDumpMode =
false)
const override;
40 virtual const CResult GetBinaryData(Base::CFLData* pFldBinary,
bool bSuperClass =
false, int32_t i32Version = -1,
bool bDumpMode =
false)
const override;
42 virtual const CResult SetBinaryData(
const Base::CFLData& fldBinary, int64_t* pI64Offset =
nullptr)
override;
43 virtual const CResult SetBinaryData(
const Base::CFLData* pFldBinary, int64_t* pI64Offset =
nullptr)
override;
45 DeclareGetClassType();
46 SupportToDuplicateObjectWithoutCreateNewObject(CComputationalGraphAugmentationMaskOperationForSegmentation, *
this);
49 CTensor<T> m_tsrMaskTmpBuffer;
51 CBackendLabel<T> m_backendLabel;
53 DeclareGetSignletonObject(CComputationalGraphAugmentationMaskOperationForSegmentation);
57 template <
typename T>
friend class CInternalAugmentationMaskOperationForSegmentation;
60 #define CCGFAugmentationMaskOPSS(...) (*(new CComputationalGraphAugmentationMaskOperationForSegmentation<float>(__VA_ARGS__)))
61 #define CCGDAugmentationMaskOPSS(...) (*(new CComputationalGraphAugmentationMaskOperationForSegmentation<double>(__VA_ARGS__)))
63 #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:69
Definition AlgorithmAIBase.h:18