i have a project in my university, and i have to convert PyTorch model to ONNX and ONNX to Tensorflow, and Tensorflow to TF Lite. i was able to convert PyTorch to ONNX with the help of Chatgpt, but i encountered a lot of errors during the conversion of ONNX to Tensorflow. I tried installing all the libraries and packages required. The issue is of compatiblity of tensorflow and tensorflow-probability as far as i know. please help me with this.
Tensorflow version → 2.14.0
TensorFlow Probability version → 0.21.0
1 Like
this is my python code:
import onnx
from onnx_tf.backend import prepare
onnx_model = onnx.load("temp_humidity_model.onnx")
tf_rep = prepare(onnx_model)
tf_rep.export_graph("temp_humidity_model_tf")
print("ONNX model converted to TensorFlow and saved at: temp_humidity_model_tf")
Hi Christopher facing same issue cannot convert onnx model to tensorflow, everytime some version clash error or compatibility issue occurs.
if you found any solution please share!!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.