Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
04ef5c2f
Commit
04ef5c2f
authored
Apr 30, 2018
by
eantaev
Committed by
Katherine Wu
Apr 30, 2018
Browse files
official/mnist: Add input_shape parameter to initial layer (#4104) (#4118)
parent
30580a35
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
official/mnist/mnist.py
official/mnist/mnist.py
+3
-1
No files found.
official/mnist/mnist.py
View file @
04ef5c2f
...
...
@@ -62,7 +62,9 @@ def create_model(data_format):
# (a subclass of tf.keras.Model) makes for a compact description.
return
tf
.
keras
.
Sequential
(
[
l
.
Reshape
(
input_shape
),
l
.
Reshape
(
target_shape
=
input_shape
,
input_shape
=
(
28
*
28
,)),
l
.
Conv2D
(
32
,
5
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment