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");