Replies: 1 comment
-
Hi, I would suggest the following change to take the Keras model name as ONNX graph name: old: new: tensorflow-onnx/tf2onnx/convert.py Line 171 in 82ae7c4 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Is there a way to rename the graph while converting and saving a keras model with
tf2onnx.convert.from_keras()
?As shown in the script below,
model_proto.graph.name
is "tf2onnx" when usingtf2onnx.convert.from_keras()
. To rename and save, I currently set the name usingmodel_proto.graph.name = 'new_model_name'
after converting, and then save withonnx.save
.Is it possible to set the name directly with
tf2onnx.convert.from_keras()
?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions