titu1994 / keras-efficientnets

Keras Implementation of EfficientNets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No attribute 'swish' error

jannaescur opened this issue · comments

I get the following error:
AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'swish'

Tensorflow version: 1.4.0 (GPU, installed before your library)
Keras version: 2.2.4

I have imported the model: from keras_efficientnets import EfficientNetB4
This should import custom_objects too, right?

Any idea of what can be happening? Thanks

Update your tensorflow version. TF.nn.swish was not added in TF 1.4