onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Load model from /data_dir/project/e2eonnx/onnx/five_actions/tad.onnx failed:Type Error: Type parameter (T) of Optype (Concat) bound to different types (tensor(int64) and tensor(float) in node (Concat_5090).
解决思路:
首先使用了工具:Netron
发现输出当中,混了一个int64
然后再看日志
roi确实是int64啊
然后在代码中打印
但是打印出来的是float啊,怎么会突然变成了Long(int64)???
为了进一步验证,我单独输出roi,发现roi还是自动变成了int64
所以我猜测是这个里面的某个操作,变成了long,导致roi也变成了long