Skip to content

Commit 7b178ae

Browse files
authored
Update parameter_server_training.ipynb
Move "model.compile" under strategy scope.
1 parent 9431cc7 commit 7b178ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/tutorials/distribute/parameter_server_training.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@
438438
"with strategy.scope():\n",
439439
" model = tf.keras.models.Sequential([tf.keras.layers.Dense(10)])\n",
440440
"\n",
441-
"model.compile(tf.keras.optimizers.SGD(), loss='mse', steps_per_execution=10)"
441+
" model.compile(tf.keras.optimizers.SGD(), loss='mse', steps_per_execution=10)"
442442
]
443443
},
444444
{

0 commit comments

Comments
 (0)