3#if _MSC_VER >= 1900 && defined(_M_X64)
5#include "ComputationalGraph.h"
12 class FL_EXPORT CComputationalGraphSELU :
public CComputationalGraph<T>
15 CComputationalGraphSELU();
18 CComputationalGraphSELU(
const CComputationalGraphSELU<T>& cg);
21 CComputationalGraphSELU(
const CComputationalBase<T>& cbOperand,
bool bInplace =
false);
22 virtual ~CComputationalGraphSELU();
24 virtual CTensor<T>& Forward()
override;
25 virtual CTensor<T>* Backward()
override;
26 virtual CComputationalBase<T>* Clone()
const override;
27 virtual const CResult PrintNodeParamInfo()
const override;
29 virtual const CResult GetBinaryData(Base::CFLData& fldBinary,
bool bSuperClass =
false, int32_t i32Version = -1,
bool bDumpMode =
false)
const override;
30 virtual const CResult GetBinaryData(Base::CFLData* pFldBinary,
bool bSuperClass =
false, int32_t i32Version = -1,
bool bDumpMode =
false)
const override;
32 virtual const CResult SetBinaryData(
const Base::CFLData& fldBinary, int64_t* pI64Offset =
nullptr)
override;
33 virtual const CResult SetBinaryData(
const Base::CFLData* pFldBinary, int64_t* pI64Offset =
nullptr)
override;
35 virtual const std::vector<int64_t>& GetEstimatedShape(
bool bRecursive =
true)
const override;
38 DeclareGetClassType();
39 SupportToDuplicateObjectWithoutCreateNewObject(CComputationalGraphSELU, *
this);
42 virtual const CResult SELU(CTensor<T>* pTsrOperand, CTensor<T>* pTsrResult);
45 DeclareGetSignletonObject(CComputationalGraphSELU);
48 #define CCGFSELU(...) (*(new CComputationalGraphSELU<float>(__VA_ARGS__)))
49 #define CCGDSELU(...) (*(new CComputationalGraphSELU<double>(__VA_ARGS__)))
51 #define CCGTSELU(T, ...) (*(new CComputationalGraphSELU<T>(__VA_ARGS__)))
Definition AlgorithmAIBase.h:16