Files
zeekayandHanzo Dev f84fe1fd15 snapshot slice 1
Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 15:29:05 -07:00

1.2 KiB

In [1]:
import onnx
import os


# Preprocessing: load the old model
old_model_path = os.path.join("resources", "single_relu.onnx")
onnx_model = onnx.load(old_model_path)

# Preprocessing: get the path to the saved model
new_model_path = os.path.join("resources", "single_relu_new.onnx")

# Save the ONNX model
onnx.save(onnx_model, new_model_path)

print("The model is saved.")
The model is saved.