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
887bbcb9
Unverified
Commit
887bbcb9
authored
Jul 30, 2018
by
Mark Daoust
Committed by
GitHub
Jul 30, 2018
Browse files
Merge pull request #4943 from DecentGradient/patch-2
Explain why input_shape is needed here.
parents
af41cc00
1be8e32a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
samples/core/tutorials/keras/overfit_and_underfit.ipynb
samples/core/tutorials/keras/overfit_and_underfit.ipynb
+1
-0
No files found.
samples/core/tutorials/keras/overfit_and_underfit.ipynb
View file @
887bbcb9
...
@@ -294,6 +294,7 @@
...
@@ -294,6 +294,7 @@
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
"baseline_model = keras.Sequential([\n",
"baseline_model = keras.Sequential([\n",
" # `input_shape` is only required here so that `.summary` works. \n"
" keras.layers.Dense(16, activation=tf.nn.relu, input_shape=(NUM_WORDS,)),\n",
" keras.layers.Dense(16, activation=tf.nn.relu, input_shape=(NUM_WORDS,)),\n",
" keras.layers.Dense(16, activation=tf.nn.relu),\n",
" keras.layers.Dense(16, activation=tf.nn.relu),\n",
" keras.layers.Dense(1, activation=tf.nn.sigmoid)\n",
" keras.layers.Dense(1, activation=tf.nn.sigmoid)\n",
...
...
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