Open2021/12/25にコメント追加3ONNXのopsetを変更するONNXPINTO2021/12/25に更新 opset_change.py import onnx model = onnx.load('path/to/your/model.onnx') op = onnx.OperatorSetIdProto() op.version = 13 update_model = onnx.helper.make_model(model.graph, opset_imports=[op]) onnx.save(update_model, 'path/to/output.onnx') PINTO2021/12/25に更新model.opset_import[0].version = 13 PINTO2021/12/25https://github.com/onnx/onnx/issues/3205
PINTO2021/12/25に更新 opset_change.py import onnx model = onnx.load('path/to/your/model.onnx') op = onnx.OperatorSetIdProto() op.version = 13 update_model = onnx.helper.make_model(model.graph, opset_imports=[op]) onnx.save(update_model, 'path/to/output.onnx')