keras version to use with tensorflow-gpu 1.4

前端 未结 4 1376
没有蜡笔的小新
没有蜡笔的小新 2021-02-08 04:22

I am using ubuntu 16, with python 3, tf-GPU with keras.

I downgraded to tf 1.4 due to cuda errors as explained here

But now I am getting this error

4条回答
  •  面向向阳花
    2021-02-08 04:44

    I was able to use the conda package manager to install keras and keras-gpu, with a compatible tensorflow and cuda versions to get past your TypeError: softmax()... error message when I was trying to load the original BERT tensorflow checkpoint using the keras-bert package:

    $ conda create -n bert python=3.6
    $ conda activate bert
    $ conda install keras==2.0.8
    $ conda install keras-gpu==2.0.8
    $ pip install keras-pos-embd==0.10.0
    $ pip install keras-transformer==0.22.0
    

提交回复
热议问题