diff --git a/include/onnxruntime/core/session/onnxruntime_lite_custom_op.h b/include/onnxruntime/core/session/onnxruntime_lite_custom_op.h index 81c20768c3120..2eb995d864ccd 100644 --- a/include/onnxruntime/core/session/onnxruntime_lite_custom_op.h +++ b/include/onnxruntime/core/session/onnxruntime_lite_custom_op.h @@ -330,6 +330,12 @@ struct TensorArray : public ArgBase { case ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT: tensor = std::make_unique>(ctx, ith_input, true); break; + case ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT16: + tensor = std::make_unique>(ctx, ith_input, true); + break; + case ONNX_TENSOR_ELEMENT_DATA_TYPE_BFLOAT16: + tensor = std::make_unique>(ctx, ith_input, true); + break; case ONNX_TENSOR_ELEMENT_DATA_TYPE_DOUBLE: tensor = std::make_unique>(ctx, ith_input, true); break; @@ -360,6 +366,18 @@ struct TensorArray : public ArgBase { case ONNX_TENSOR_ELEMENT_DATA_TYPE_STRING: tensor = std::make_unique>(ctx, ith_input, true); break; + case ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT8E4M3FN: + tensor = std::make_unique>(ctx, ith_input, true); + break; + case ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT8E4M3FNUZ: + tensor = std::make_unique>(ctx, ith_input, true); + break; + case ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT8E5M2: + tensor = std::make_unique>(ctx, ith_input, true); + break; + case ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT8E5M2FNUZ: + tensor = std::make_unique>(ctx, ith_input, true); + break; default: ORT_CXX_API_THROW("unknown input type", ORT_RUNTIME_EXCEPTION); break;