【问题标题】:TensorFlow 2 not show the version in colab google and windows 10TensorFlow 2 不显示 colab google 和 windows 10 中的版本
【发布时间】:2019-06-11 07:36:57
【问题描述】:

我在 google colab 中安装了 TensorFlow 版本 2:

!wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64 -O cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64.deb !dpkg -i cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64.deb !apt-key add /var/cuda-repo-10-0-local-10.0.130-410.48/7fa2af80.pub !apt-get update !apt-get install cuda !pip install tf-nightly-gpu-2.0-preview

但是当我试图找到它显示的版本时

1.13.0-dev20190116

我想使用时也有错误 tf.enable_eager_execution() 和 NameError: 名称“层”未定义

【问题讨论】:

标签: python tensorflow tensorflow2.0


【解决方案1】:

试试这样:

!pip install tf-nightly-2.0-preview
import tensorflow as tf

正如Luca 解释的那样检查您需要的版本:

print(tf.__version__)

【讨论】:

    猜你喜欢
    • 2019-01-29
    • 2022-11-08
    • 1970-01-01
    • 1970-01-01
    • 2023-02-10
    • 2020-03-06
    • 1970-01-01
    • 1970-01-01
    • 2018-10-21
    相关资源
    最近更新 更多