12 #include <boost/core/ignore_unused.hpp> 17 template<
typename T,
typename V>
22 optionalRef.
value() = val;
26 template<
typename Float16Func,
typename Float32Func,
typename Uint8Func,
typename Int32Func,
typename BooleanFunc,
30 Float16Func float16FuncPtr,
31 Float32Func float32FuncPtr,
32 Uint8Func uint8FuncPtr,
33 Int32Func int32FuncPtr,
34 BooleanFunc booleanFuncPtr,
40 return float16FuncPtr(reasonIfUnsupported, std::forward<Params>(params)...);
42 return float32FuncPtr(reasonIfUnsupported, std::forward<Params>(params)...);
44 return uint8FuncPtr(reasonIfUnsupported, std::forward<Params>(params)...);
46 return int32FuncPtr(reasonIfUnsupported, std::forward<Params>(params)...);
48 return booleanFuncPtr(reasonIfUnsupported, std::forward<Params>(params)...);
54 template<
typename ... Params>
57 boost::ignore_unused(reasonIfUnsupported);
58 boost::ignore_unused(params...);
62 template<
typename ... Params>
65 boost::ignore_unused(reasonIfUnsupported);
66 boost::ignore_unused(params...);
70 template<
typename ... Params>
73 boost::ignore_unused(params...);
74 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with float16 data type");
78 template<
typename ... Params>
81 boost::ignore_unused(params...);
82 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with float32 data type");
86 template<
typename ... Params>
89 boost::ignore_unused(params...);
90 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with 8-bit data type");
94 template<
typename ... Params>
97 boost::ignore_unused(params...);
98 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with int32 data type");
102 template<
typename ... Params>
105 boost::ignore_unused(params...);
106 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with float32 data type input");
110 template<
typename ... Params>
113 boost::ignore_unused(params...);
114 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with float16 data type input");
118 template<
typename ... Params>
121 boost::ignore_unused(params...);
122 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with float32 data type output");
126 template<
typename ... Params>
129 boost::ignore_unused(params...);
130 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with float16 data type output");
bool FalseOutputFuncF32(Optional< std::string &> reasonIfUnsupported, Params &&... params)
bool FalseFuncI32(Optional< std::string &> reasonIfUnsupported, Params &&... params)
bool FalseOutputFuncF16(Optional< std::string &> reasonIfUnsupported, Params &&... params)
bool FalseFunc(Optional< std::string &> reasonIfUnsupported, Params &&... params)
bool TrueFunc(Optional< std::string &> reasonIfUnsupported, Params &&... params)
bool FalseInputFuncF32(Optional< std::string &> reasonIfUnsupported, Params &&... params)
bool FalseFuncU8(Optional< std::string &> reasonIfUnsupported, Params &&... params)
bool FalseFuncF32(Optional< std::string &> reasonIfUnsupported, Params &&... params)
bool IsSupportedForDataTypeGeneric(Optional< std::string &> reasonIfUnsupported, DataType dataType, Float16Func float16FuncPtr, Float32Func float32FuncPtr, Uint8Func uint8FuncPtr, Int32Func int32FuncPtr, BooleanFunc booleanFuncPtr, Params &&... params)
void SetValueChecked(Optional< T &> optionalRef, V &&val)
bool FalseInputFuncF16(Optional< std::string &> reasonIfUnsupported, Params &&... params)
bool FalseFuncF16(Optional< std::string &> reasonIfUnsupported, Params &&... params)