版权声明:本文为博主原创文章,未经博主允许不得转载。 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 ofkeepdims
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 version1.4.0
and keras version2.0.8
. It works.