module ‘tensorflow‘ has no attribute ‘Tensor‘
module 'tensorflow' has no attribute 'Tensor'
module 'tensorflow' has no attribute 'Tensor'
import tensorflow as tf
tf.compat.v1.Session()
from typing import Any, Iterable, List, Union
TfExpression = Union[tf.Tensor, tf.Variable, tf.Operation]
版本不对
pip install tensorflow-gpu==1.15.0 -i https://pypi.tuna.tsinghua.edu.cn/simple/
4.升级后发现cuda是10.1,其实tensorflow只支持10
卸载cuda10.1:
sudo apt uninstall cuda
sudo autoremove
或者:
sudo apt-get --purge remove "*cublas*" "cuda"
如果要卸载驱动(不需要)
sudo apt-get --pruge remove "nvidia"
或者 apt-get remove --purge nvidia-410 nvidia-modprobe nvidia-settings
2020-07-13 03:36:26.145898: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
2020-07-13 03:36:26.147865: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cublas64_100.dll'; dlerror: cublas64_100.dll not found
2020-07-13 03:36:26.149840: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cufft64_100.dll'; dlerror: cufft64_100.dll not found
2020-07-13 03:36:26.151960: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'curand64_100.dll'; dlerror: curand64_100.dll not found
2020-07-13 03:36:26.153996: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusolver64_100.dll'; dlerror: cusolver64_100.dll not found
2020-07-13 03:36:26.156030: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusparse64_100.dll'
更多推荐
所有评论(0)