Tensorflow compile error fixes:

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/huangkangying/article/details/84261574

Error: unexpected keyword argument ‘keepdims’

  • Fix: I got the same error, and I found that according to the TensorFlow docs, the option has to be keep_dims instead of keepdims in the latest version, and Tensorflow 1.4.1 also.

Error: TypeError: softmax() got an unexpected keyword argument ‘axis’

  • Fix: My previous tensorflow version is 1.4.2 and keras version is the newest version (with cuda8.0, cudnn 6.0, and python2.7).
    I downgrade to tensorflow version 1.4.0 and keras version 2.0.8. It works.

猜你喜欢

转载自blog.csdn.net/huangkangying/article/details/84261574