我正在尝试将我的TF2.0 RC1模型转换为onnx (使用keras2onnx或tf2onnx)。当我执行这段代码时:
import keras2onnx
或者这段代码
import tf2onnx
我得到了错误:
ModuleNotFoundError: No module named 'tensorflow.tools.graph_transforms'
如何解决此错误或将我的Tensorflow v2.0模型转换为onnx?
发布于 2020-04-17 14:54:36
这应该可以解决这个问题。
pip install git+https://github.com/onnx/tensorflow-onnx
https://stackoverflow.com/questions/58099264
复制相似问题