I am trying to import concatenate from keras.layers.merge but getting this error.
I have downgraded keras to 1.1.2. But still facing same error.
The line of code which gives error is:
from keras.layers.merge import concatenate
Also, I can't import Concatenate from keras models against code:
from keras.models import Concatenate
As @Ivan mentioned, you can use either:
from keras.layers import concatenate
or
from tensorflow.keras.layers import concatenate
do
from keras.layers import Concatenate
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With