RuntimeError: ONNX export failed: Couldn‘t export operator aten::upsample_bilinear2d

pth --> onnx报错

RuntimeError: ONNX export failed: Couldn't export operator aten::upsample_bilinear2d

解决:

   torch.onnx.export(model, input, onnx_path, verbose=True, input_names=input_names, output_names=output_names)
#增加:opset_version=11
   torch.onnx.export(model, input, onnx_path, verbose=True, input_names=input_names, output_names=output_names, opset_version=11)

你可能感兴趣的:(openvino,onnx)