0

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)


Ulto 4
  • 368
  • 4
  • 16

1 Answers1

0

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

Kabeer Jaffri
  • 652
  • 1
  • 9
  • 9
  • 3
    Try using comments for small queries or when asking for clarification from the question author, instead of posting an answer. – Mercury Jun 10 '21 at 19:28
  • Thanks. I was using google colab so I didn't think I needed to reinstall. Upon uninstalling and reinstalling tensorflow it worked. – Ulto 4 Jun 10 '21 at 19:45