3#if _MSC_VER >= 1900 && defined(_M_X64)
5#include "ComputationalGraph.h"
6#include "AugmentationParameters.h"
15 class CInternalAugmentationBase;
18 class CInternalAugmentationForClassifier;
21 class CInternalAugmentationMaskOperationForSegmentation;
24 class CInternalAugmentationForInstanceSegmentation;
27 class CInternalAugmentationForObjectDetection;
30 class CInternalAugmentationForAnomalyDetection;
33 class CInternalAugmentationForAnomalyDetectionTrain;
36 class CInternalAugmentationForSuperResolution;
39 class CInternalAugmentationForStringBasedOCR;
42 class CInternalAugmentationForGAN;
45 class FL_EXPORT CComputationalGraphAugmentationBase :
public CComputationalGraph<T>
50 CComputationalGraphAugmentationBase();
51 CComputationalGraphAugmentationBase(
const CComputationalGraphAugmentationBase<T>& cg);
55 CComputationalGraphAugmentationBase(
const CComputationalBase<T>& cbOperand,
const CAugmentationParameters& apParams);
56 CComputationalGraphAugmentationBase(
const CComputationalBase<T>& cbOperand,
const CAugmentationParameters* pApParams);
57 virtual ~CComputationalGraphAugmentationBase();
59 const CComputationalGraphAugmentationBase<T>& operator=(
const CComputationalGraphAugmentationBase<T>& iab);
61 virtual const CResult
Assign(
const CComputationalGraphAugmentationBase<T>& cgAug);
62 virtual const CResult
Assign(
const CComputationalGraphAugmentationBase<T>* pCgAug);
64 virtual const CResult SetAugmentationParameters(
const CAugmentationParameters& apParams);
65 virtual const CResult SetAugmentationParameters(
const CAugmentationParameters* pApParams);
66 virtual const CAugmentationParameters* GetAugmentationParameters()
const;
68 virtual CTensor<T>& Forward()
override;
69 virtual CTensor<T>* Backward()
override;
70 virtual CComputationalBase<T>* Clone()
const override = 0;
72 virtual const CResult GetBinaryData(Base::CFLData& fldBinary,
bool bSuperClass =
false, int32_t i32Version = -1,
bool bDumpMode =
false)
const override;
73 virtual const CResult GetBinaryData(Base::CFLData* pFldBinary,
bool bSuperClass =
false, int32_t i32Version = -1,
bool bDumpMode =
false)
const override;
75 virtual const CResult SetBinaryData(
const Base::CFLData& fldBinary, int64_t* pI64Offset =
nullptr);
76 virtual const CResult SetBinaryData(
const Base::CFLData* pFldBinary, int64_t* pI64Offset =
nullptr);
78 virtual const std::vector<int64_t>& GetEstimatedShape(
bool bRecursive =
true)
const override;
79 virtual int64_t GetRequiredDedicatedMemory(
bool bTraining =
false,
bool bRecursively =
true, int64_t i64BatchSize = 1)
const override;
80 virtual int64_t GetRequiredTemporaryMemory(
bool bTraining =
false,
bool bRecursively =
true, int64_t i64BatchSize = 1, int64_t i64MemoryIndex = 0)
const override;
81 virtual const CResult PrintNodeParamInfo()
const override;
84 DeclareGetClassType();
85 SupportToDuplicateAbstractObject(CComputationalGraphAugmentationBase);
87 virtual void Throw(
const CResult& res,
const wchar_t* pWcsExtraMessage =
nullptr)
const override;
89 CTensor<T> m_tsrTmpBuffer;
90 CTensor<T> m_tsrNullPixelMask;
91 CAugmentationParameters m_apAugmentaionParams;
93 CInternalAugmentationBase<T>* m_pInternal;
97 template <
typename T>
friend class CInternalAugmentationBase;
98 template <
typename T>
friend class CInternalAugmentationForClassifier;
99 template <
typename T>
friend class CInternalAugmentationMaskOperationForSegmentation;
100 template <
typename T>
friend class CInternalAugmentationForInstanceSegmentation;
101 template <
typename T>
friend class CInternalAugmentationForObjectDetection;
102 template <
typename T>
friend class CInternalAugmentationForSegmentation;
103 template <
typename T>
friend class CInternalAugmentationForAnomalyDetection;
104 template <
typename T>
friend class CInternalAugmentationForAnomalyDetectionTrain;
105 template <
typename T>
friend class CInternalAugmentationForSuperResolution;
106 template <
typename T>
friend class CInternalAugmentationForStringBasedOCR;
107 template <
typename T>
friend class CInternalAugmentationForGAN;
@ Assign
Set the value of CGUIPropertyItemView3DFigure to the specified figure.