Jupyter notebook中的问题

在Ubuntu 18.04上运行Jupyter Notebook时遇到CPU指令不匹配的问题,具体表现为TensorFlow提示未编译使用AVX2 FMA指令。解决方法是在程序中添加特定代码。此外,当GPU内存不足导致TensorFlow报错时,可通过重启Jupyter Notebook或调整程序来释放GPU内存。
摘要由CSDN通过智能技术生成

 

 

  • 问题录

  1.  (Ubuntu18.04)在运行程序时,在启动jupyter的Terminal中,出现  “Your CPU supports instructions that this TensorFlow binary was not compiled to use : AVX2 FMA
    1. 解决方案:    在程序中添加两行代码
      import os
      os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'    # 忽略哪些报告

       

    2.  
  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 han
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值