3#if _MSC_VER >= 1900 && defined(_M_X64)
5#include "ComputationalGraph.h"
15 class CCuda_ComputationalGraphPooling2D_Cudnn;
19 class FL_EXPORT CComputationalGraphCustomAnomalyDetectionMinMaxDiff :
public CComputationalGraph<T>
22 CComputationalGraphCustomAnomalyDetectionMinMaxDiff();
25 CComputationalGraphCustomAnomalyDetectionMinMaxDiff(
const CComputationalGraphCustomAnomalyDetectionMinMaxDiff<T>& cg);
29 CComputationalGraphCustomAnomalyDetectionMinMaxDiff(
const CComputationalBase<T>& cbOperand,
const CComputationalBase<T>& cbOperand2, int64_t i64KernelX = 2, int64_t i64KernelY = 2);
30 virtual ~CComputationalGraphCustomAnomalyDetectionMinMaxDiff();
32 virtual CTensor<T>& Forward()
override;
33 virtual CTensor<T>* Backward()
override;
34 virtual CComputationalBase<T>* Clone()
const override;
36 virtual const std::vector<int64_t>& GetEstimatedShape(
bool bRecursive =
true)
const override;
37 virtual const CResult PrintNodeParamInfo()
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 virtual int64_t GetRequiredDedicatedMemory(
bool bTraining =
false,
bool bRecursively =
true, int64_t i64BatchSize = 1)
const override;
48 DeclareGetClassType();
49 SupportToDuplicateObjectWithoutCreateNewObject(CComputationalGraphCustomAnomalyDetectionMinMaxDiff, *
this);
52 virtual const CResult CustomAnomalyDetectionMinMaxDiff(CTensor<T>* pTsrOperand1, CTensor<T>* pTsrOperand2, CTensor<T>* pTsrResult);
53 virtual const CResult DerivativeImage();
58 CTensor<T>* m_pTsrMaxPos;
62 CCuda_ComputationalGraphPooling2D_Cudnn<T>* m_pCudnn;
66 DeclareGetSignletonObject(CComputationalGraphCustomAnomalyDetectionMinMaxDiff);
69 #define CCGFCustomAnomalyDetectionMinMaxDiff(...) (*(new CComputationalGraphCustomAnomalyDetectionMinMaxDiff<float>(__VA_ARGS__)))
70 #define CCGDCustomAnomalyDetectionMinMaxDiff(...) (*(new CComputationalGraphCustomAnomalyDetectionMinMaxDiff<double>(__VA_ARGS__)))
72 #define CCGTCustomAnomalyDetectionMinMaxDiff(T, ...) (*(new CComputationalGraphCustomAnomalyDetectionMinMaxDiff<T>(__VA_ARGS__)))