Untitled
user_9286359
plain_text
a year ago
382 B
8
Indexable
import onnx
from onnxsim import simplify
# Load the exported ONNX model
model = onnx.load("deep_conv_net.onnx")
# Simplify the ONNX model
model_simplified, check = simplify(model)
# Save the simplified model
if check:
onnx.save(model_simplified, "deep_conv_net_simplified.onnx")
print("Simplified ONNX model saved successfully.")
else:
print("Simplification failed.")Editor is loading...
Leave a Comment