-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't convert from ONNX to Tensorflow #1063
Comments
That is a warning, not necessarily an error. What other output do you get? |
this is the error: Traceback (most recent call last):
|
I have the same problem |
@YYazidd , if you used something like; i_names=['i1', 'i2']
o_names=['o1']
torch.onnx.export(model, inputs, '/path/to/onnx/model/file',
input_names=i_names,
output_names=o_names) change |
I have a .pt pytorch model file, and i wanted to convert it to a tensorflow model, i convert the .pt to .onnx file, and now i am stuck and i can't convert it to a .pb tensorflow model file
I used the CLI: ( i tried both)
!onnx-tf convert -i model.onnx -o newModel.pb
!onnx-tf convert -i model.onnx -o newModel
and i get this error
warnings.warn(
2023-08-05 19:53:33,648 - onnx-tf - INFO - Start converting onnx pb to tf saved model
WARNING:absl:
input.1
is not a valid tf.function parameter name. Sanitizing toinput_1
.The text was updated successfully, but these errors were encountered: