Commit 04ef5c2f authored by eantaev's avatar eantaev Committed by Katherine Wu
Browse files

official/mnist: Add input_shape parameter to initial layer (#4104) (#4118)

parent 30580a35
...@@ -62,7 +62,9 @@ def create_model(data_format): ...@@ -62,7 +62,9 @@ def create_model(data_format):
# (a subclass of tf.keras.Model) makes for a compact description. # (a subclass of tf.keras.Model) makes for a compact description.
return tf.keras.Sequential( return tf.keras.Sequential(
[ [
l.Reshape(input_shape), l.Reshape(
target_shape=input_shape,
input_shape=(28 * 28,)),
l.Conv2D( l.Conv2D(
32, 32,
5, 5,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment