16 template<
typename T,
typename V>
21 optionalRef.
value() = val;
25 template<
typename Float16Func,
typename Float32Func,
typename Uint8Func,
typename Int32Func,
typename BooleanFunc,
29 Float16Func float16FuncPtr,
30 Float32Func float32FuncPtr,
31 Uint8Func uint8FuncPtr,
32 Int32Func int32FuncPtr,
33 BooleanFunc booleanFuncPtr,
39 return float16FuncPtr(reasonIfUnsupported, std::forward<Params>(params)...);
41 return float32FuncPtr(reasonIfUnsupported, std::forward<Params>(params)...);
43 return uint8FuncPtr(reasonIfUnsupported, std::forward<Params>(params)...);
45 return int32FuncPtr(reasonIfUnsupported, std::forward<Params>(params)...);
47 return booleanFuncPtr(reasonIfUnsupported, std::forward<Params>(params)...);
53 template<
typename ... Params>
61 template<
typename ... Params>
69 template<
typename ... Params>
73 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with float16 data type");
77 template<
typename ... Params>
81 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with float32 data type");
85 template<
typename ... Params>
89 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with 8-bit data type");
93 template<
typename ... Params>
97 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with int32 data type");
101 template<
typename ... Params>
105 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with float32 data type input");
109 template<
typename ... Params>
113 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with float16 data type input");
117 template<
typename ... Params>
121 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with float32 data type output");
125 template<
typename ... Params>
129 SetValueChecked(reasonIfUnsupported,
"Layer is not supported with float16 data type output");
Copyright (c) 2021 ARM Limited and Contributors.
bool TrueFunc(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 IgnoreUnused(Ts &&...)
bool FalseOutputFuncF32(Optional< std::string & > reasonIfUnsupported, Params &&... params)
bool FalseFunc(Optional< std::string & > reasonIfUnsupported, Params &&... params)
bool FalseInputFuncF32(Optional< std::string & > reasonIfUnsupported, Params &&... params)
bool FalseFuncF32(Optional< std::string & > reasonIfUnsupported, Params &&... params)
bool FalseFuncI32(Optional< std::string & > reasonIfUnsupported, 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)
bool FalseOutputFuncF16(Optional< std::string & > reasonIfUnsupported, Params &&... params)
bool FalseFuncU8(Optional< std::string & > reasonIfUnsupported, Params &&... params)