无法导入名称'跟踪'从' tensorflow.python.profiler

发布于 2025-02-12 03:32:39 字数 437 浏览 2 评论 0原文

我的环境正常工作,一段时间后回到它,当我尝试运行张板时,我会面对这个错误:

无法从'tensorflow.python.profiler

导入名称'trace'

我在我的conda env env tfgpu220中有这些软件包: Spyder 5.3.0 Spyder-Kernels 2.3.0 张板2.2.2 Tensorboard-Data服务器0.6.1 Tensorboard-Plugin-Wit 1.8.1 TensorFlow-GPU 2.2.0 TensorFlow-GPU估计器2.2.0 Tensorflow-io-GCS-Filesystem 0.25.0 TermColor 1.1.0 文本 - unidecode 1.3 TextDistance 4.2.2 tf-估计量2.8.0.dev2021122109

任何帮助,thx。

My enviorment was working fine, getting back to it after a while and when I try to run tensorboard I face this error:

cannot import name 'trace' from 'tensorflow.python.profiler

I have these packages in my conda env tfgpu220:
spyder 5.3.0
spyder-kernels 2.3.0
tensorboard 2.2.2
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.1
tensorflow-gpu 2.2.0
tensorflow-gpu-estimator 2.2.0
tensorflow-io-gcs-filesystem 0.25.0
termcolor 1.1.0
text-unidecode 1.3
textdistance 4.2.2
tf-estimator-nightly 2.8.0.dev2021122109

Any help, Thx.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦幻的味道 2025-02-19 03:32:39

请升级TensorFlow版本,然后导入跟踪。

pip install tensorflow --upgrade

使用以下语句导入跟踪。

from tf.profiler.experimental import Trace

Please upgrade the Tensorflow version and then import trace.

pip install tensorflow --upgrade

Use the following statement to import trace.

from tf.profiler.experimental import Trace
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文