• rubby

    InvalidArgumentError (see above for traceback): Cannot assign a device for operation ‘gradients/aux_loss/xentropy_grad/LogSoftmax’: Could not satisfy explicit device specification ‘/device:GPU:0’ because no supported kernel for GPU devices is **ailable.
    [[Node: gradients/aux_loss/xentropy_grad/LogSoftmax = LogSoftmaxT=DT_FLOAT, _device=”/device:GPU:0”]]

     遇到这个问题,不知道怎么解决
    
    rubby发表于 2018/5/30 19:10:15
    • 何之源

      你好。请问是第几章出现的错误?

      何之源发表于 2018/6/8 20:43:52
  • Luckscy

    在学习chapter_3 运行train_image_classifier.py时出现:
    InvalidArgumentError (see above for traceback): Cannot assign a device for operation ‘gradients/aux_loss/xentropy_grad/LogSoftmax’: Could not satisfy explicit device specification ‘/device:GPU:0’ because no supported kernel for GPU devices is **ailable.
    Registered kernels:
    device=’CPU’; T in [DT_HALF]
    device=’CPU’; T in [DT_FLOAT]
    device=’CPU’; T in [DT_DOUBLE]

     [[Node: gradients/aux_loss/xentropy_grad/LogSoftmax = LogSoftmax[T=DT_FLOAT, _device="/device:GPU:0"](aux_loss/xentropy/Reshape)]]
    

    我已经安装了CUDA,CUDNN,tf-gpu了,简单测试也可以运行
    import tensorflow as tf

    hi=tf.constant(‘hello’)
    with tf.Session() as sess:
    print(sess.run(hi))
    但按照书中的代码提示如上,怎么解决啊。。。

    Luckscy发表于 2018/5/26 8:52:48
    • cctv*15

      你的问题解决了么

      cctv*15发表于 2018/6/6 9:59:27
    • Luckscy

      @cctv*15 解决不了。。。估计SLIM根本不支持tf-gpu1.8。期待有人解决下这个问题

      Luckscy发表于 2018/6/7 21:08:09
    • yhlz49

      @Luckscy 已解决,看前面回答

      yhlz49发表于 2018/9/29 8:46:51
  • zzcqiang

    第三章运行python data_convert.py -t pic/ \出错怎么解决?
    data_convert.py: error: unrecognized arguments: \

    zzcqiang发表于 2018/5/9 22:52:59
    • 宇

      我也是这个问题,请问您解决了吗?

      宇发表于 2018/5/30 21:01:38
    • 何之源

      \表示的是续航符,可以把所有命令打在一行就可以解决这个问题

      何之源发表于 2018/6/8 20:47:47
    • deepstudyofsky

      windows 换行符是^ linux 是\,操作系统不同

      deepstudyofsky发表于 2018/9/10 21:41:29
  • 请问

    第15章的时间序列的训练程序运行会出现Integer parameter eexcepted so float 的错误,要怎么办

    请问发表于 2018/5/3 19:06:44
    • 何之源

      请问运行环境,python版本和tensorflow版本是?

      何之源发表于 2018/6/8 20:47:11
  • hunterxxn

    第七章预训练模型没有啊,下载里面也没有,是我没找到吗,求解

    hunterxxn发表于 2018/4/24 18:22:11
    • moverzp

      我也没找到。。

      moverzp发表于 2018/5/28 13:37:07
    • 何之源

      参考说明:各章data文件夹下载地址
      本工程主要包含的是项目的源代码文件,以chapter_1/ ~ chapter_21/ 标识。在有的章节中,还会额外需要一些数据集、模型等文件,我们用chapter_<章节名>_data/来表示。

      例如:第四章有chapter_4/和chapter_4_data/两个文件夹,前者是源代码,后者是在运行程序时会用的数据文件。

      由于数据文件通常比较大,建议读者在用到时候再进行下载,下载地址为:https://pan.baidu.com/s/1i7pKvFf,提取码:1kmf。

      何之源发表于 2018/6/8 20:46:24
  • 1
  • ...
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26