40 case circlechef::NONE:
41 return circle::ActivationFunctionType_NONE;
42 case circlechef::RELU:
43 return circle::ActivationFunctionType_RELU;
44 case circlechef::RELU6:
45 return circle::ActivationFunctionType_RELU6;
50 throw std::runtime_error{
"Unknown activation"};
57 case circlechef::FLOAT32:
58 return circle::TensorType_FLOAT32;
59 case circlechef::INT64:
60 return circle::TensorType_INT64;
61 case circlechef::INT32:
62 return circle::TensorType_INT32;
63 case circlechef::INT16:
64 return circle::TensorType_INT16;
65 case circlechef::INT4:
66 return circle::TensorType_INT4;
67 case circlechef::UINT8:
68 return circle::TensorType_UINT8;
69 case circlechef::UINT4:
70 return circle::TensorType_UINT4;
71 case circlechef::STRING:
72 return circle::TensorType_STRING;
73 case circlechef::BOOL:
74 return circle::TensorType_BOOL;
75 case circlechef::MXFP4:
76 return circle::TensorType_MXFP4;
77 case circlechef::MXINT8:
78 return circle::TensorType_MXINT8;
83 throw std::runtime_error{
"Unknown tensor type"};