Search code examples
pythonpython-3.xtensorflowmachine-learningdcgan

How do I fix module 'tensorflow.python.keras.activations' has no attribute 'get' error?


I'm trying to make a DCGAN but I keep getting this error when initializing the Convolutional2D layer for my discriminator. It worked fine when I tried it a few days ago but now it's broken.

Here's the build up to the specific layer that is causing problems

i = Input(shape=(90,90,3))
x = Conv2D(265,(5,5),activation = LeakyReLU(alpha=0.02))(i)



Solution

  • Did you try changing the version? if its still broken please share your logs and full code.