AttributeError: 'Node' object has no attribute 'output_masks'

后端 未结 4 1973
情歌与酒
情歌与酒 2021-01-04 08:02

I use Keras pretrained model VGG16. The problem is that after configuring tensorflow to use the GPU I get an error that I didn\'t have before when using the CPU.

The

4条回答
  •  佛祖请我去吃肉
    2021-01-04 08:45

    I had the same error when I import keras and tenerflow.keras simultaneously: from tensorflow.keras.optimizers import Adam from keras.utils import multi_gpu_model

    I solved this problem after changing the code into: from tensorflow.keras.optimizers import Adam from tensorflow.keras.utils import multi_gpu_model

提交回复
热议问题