davidADSP / Generative_Deep_Learning_2nd_Edition

The official code repository for the second edition of the O'Reilly book Generative Deep Learning: Teaching Machines to Paint, Write, Compose and Play.
https://www.oreilly.com/library/view/generative-deep-learning/9781098134174/
Apache License 2.0
1.12k stars 428 forks source link

Fixed error in realnvp.ipynb #45

Closed maxzaikin closed 5 days ago

maxzaikin commented 1 week ago

Hi David, layers.Input() func shape param. signature issue (TF 2.16) causing code crash: ValueError: Cannot convert '2' to a shape. Fix replace this: input_layer = layers.Input(shape=input_dim) with this: input_layer = layers.Input(shape=(input_dim,))

Best regards, Maks.

maxzaikin commented 5 days ago

closed