Closed maxzaikin closed 5 days 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,))
ValueError: Cannot convert '2' to a shape.
input_layer = layers.Input(shape=input_dim)
input_layer = layers.Input(shape=(input_dim,))
Best regards, Maks.
closed
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.