有没有大佬看看这个python问题,失败无数次

zzzyr123 2020-10-08 05:03:38
2020-10-08 16:54:18.981431: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_101.dll
2020-10-08 16:55:44.230601: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found
2020-10-08 16:55:44.233055: W tensorflow/stream_executor/cuda/cuda_driver.cc:312] failed call to cuInit: UNKNOWN ERROR (303)
2020-10-08 16:55:44.244379: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: rui
2020-10-08 16:55:44.245578: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: rui
2020-10-08 16:55:44.272651: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2020-10-08 16:55:44.345835: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x262b635c830 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-10-08 16:55:44.346525: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
Traceback (most recent call last):
File "F:/python学习包/交通数据/demo.py", line 4, in <module>
sess = tf.Session()
AttributeError: module 'tensorflow' has no attribute 'Session'
...全文
675 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_42263993 2020-12-03
  • 打赏
  • 举报
回复
我也是这样,不过下面还有 Traceback (most recent call last): File "C:/Users/DELL/Desktop/python/25.py", line 9, in <module> tf.config.experimental.set_memory_growth(physical_devices[1], True) IndexError: list index out of range

580

社区成员

发帖
与我相关
我的任务
社区描述
CUDA™是一种由NVIDIA推出的通用并行计算架构,该架构使GPU能够解决复杂的计算问题。 它包含了CUDA指令集架构(ISA)以及GPU内部的并行计算引擎。
社区管理员
  • CUDA编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧