我在导入import tensorflow.tools.graph_transforms时遇到了问题
以下是以下错误:
ModuleNotFoundError: No module named 'tensorflow.tools.graph_transforms'以下是代码:
from tensorflow.tools.graph_transforms import TransformGraph信息
Tensorflow版本:
> pip show tensorflow
Name: tensorflow
Version: 2.5.0
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: packages@tensorflow.org
License: Apache 2.0
Location: ..\appdata\local\programs\python\python39\lib\site-packages
Requires: tensorboard, wheel, keras-nightly, grpcio, wrapt, six, astunparse, gast, protobuf, typing-extensions, google-pasta, numpy, tensorflow-estimator, h5py, flatbuffers, opt-einsum, absl-py, keras-preprocessing, termcolor
Required-by:操作系统: Windows 10
Python版本: 3.9.5
发布于 2021-09-22 11:34:46
from tensorflow.tools.graph_transforms import TransformGraph在TF 1.14+版本中不再支持。
请检查这位医生有关新的API。
希望在TF 2.5.0中为您工作。
https://stackoverflow.com/questions/69283194
复制相似问题