Jupyter notebook
程序员文章站
2022-03-03 13:51:24
...
-
问题录
- (Ubuntu18.04)在运行程序时,在启动jupyter的Terminal中,出现 “Your CPU supports instructions that this TensorFlow binary was not compiled to use : AVX2 FMA”
- 解决方案: 在程序中添加两行代码
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # 忽略哪些报告
- 解决方案: 在程序中添加两行代码
- Ubuntu18.04)在运行程序时,在启动jupyter的Terminal中,出现如下报错:
Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA Successfully opened dynamic library libcuda.so.1 unable to create StreamExecutor for CUDA:0: failed initializing StreamExecutor for CUDA device ordinal 0: Internal: failed call to cuDevicePrimaryCtxRetain: CUDA_ERROR_OUT_OF_MEMORY: out of memory; total memory reported: 8366784512 Attempting to fetch value instead of handling error Internal: no supported devices found for platform CUDA KernelRestarter: restarting kernel (1/5), keep random ports WARNING:root:kernel 6dbbeb38-7b12-473a-89c0-51d5a0398abe restarted Kernel Restarting The kernel appears to have died. It will restart automatically.
- 原因分析:显卡内存不足,因为在使用TensorFlow做人工神经网络运算时,会默认占用GPU所有的显存,这样以防止被其他程序占用。
- 问题解决:
- 重启 jupyter note book,清除已占用的GPU内存。
- 或者:在程序中加入(待验证)
import os os.environ['KMP_DUPLICATE_LIB_OK'] = 'TRUE'
推荐阅读
-
windows系统中Python多版本与jupyter notebook使用虚拟环境的过程
-
三星Notebook9值得买吗?三星Notebook9笔记本简单评测和拆解图
-
windows系统下jupyter notebook使用虚拟环境
-
实用Jupyter Notebook扩展工具——提升你的工作效率
-
Jupyter Notebook使用 tqdm显示进度条(单行显示)
-
jupyter notebook中出现ValueError: signal only works in main thread 报错 即 长时间in[*] 解决办法
-
jupyter记事本的安装和简单应用
-
三星notebook7spin怎么样 三星notebook7spin笔记本详细功能图文评测
-
Netflix 开源 Polynote:对标 Jupyter,一个笔记本运行多种语言
-
三星Notebook9值得买吗?三星Notebook9笔记本简单评测和拆解图