You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I also encountered the same problem, The fix would be fairly simple, inserting the Cast operator for input tensors to the beginning of node list. How should I do it, thanks!
The onnx.checker verification is successful, but the onnxruntime loading model reports an error: onnxruntime.capi.onnxruntime_pybind11_state.InvalidGraph: [ONNXRuntimeError] : 10 : INVALID_GRAPH : Load model from model_fp16.onnx failed:This is an invalid model. Type Error: Type 'tensor(float16 )' of input parameter (const_empty_float__132) of operator (Resize) in node (Resize__139) is invalid.
Some issues observed when converting model to float16:
keep_io_types
set toTrue
,onnx.checker
will complain:Cast
operator for input tensors to the beginning of node list.DEFAULT_OP_BLOCK_LIST
:Resize
, some of the optional inputs doesn't support float16. We need exclude fp16 conversion to them.The text was updated successfully, but these errors were encountered: