Skip to content

Commit 1c8bd40

Browse files
authored
Merge branch 'master' into master
2 parents 73e81ef + c5dc4ff commit 1c8bd40

File tree

12 files changed

+31
-5523
lines changed

12 files changed

+31
-5523
lines changed

site/en/about/bib.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ title={ {TensorFlow}: Large-Scale Machine Learning on Heterogeneous Systems},
4343
url={https://www.tensorflow.org/},
4444
note={Software available from tensorflow.org},
4545
author={
46-
Mart\'{\i}n~Abadi and
46+
Mart\'{i}n~Abadi and
4747
Ashish~Agarwal and
4848
Paul~Barham and
4949
Eugene~Brevdo and

site/en/guide/migrate/evaluator.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"source": [
6868
"Evaluation is a critical part of measuring and benchmarking models.\n",
6969
"\n",
70-
"This guide demonstrates how to migrate evaluator tasks from TensorFlow 1 to TensorFlow 2. In Tensorflow 1 this functionality is implemented by `tf.estimator.train_and_evaluate`, when the API is running distributedly. In Tensorflow 2, you can use the built-in `tf.keras.experimental.SidecarEvaluator`, or a custom evaluation loop on the evaluator task.\n",
70+
"This guide demonstrates how to migrate evaluator tasks from TensorFlow 1 to TensorFlow 2. In Tensorflow 1 this functionality is implemented by `tf.estimator.train_and_evaluate`, when the API is running distributedly. In Tensorflow 2, you can use the built-in `tf.keras.utils.SidecarEvaluator`, or a custom evaluation loop on the evaluator task.\n",
7171
"\n",
7272
"There are simple serial evaluation options in both TensorFlow 1 (`tf.estimator.Estimator.evaluate`) and TensorFlow 2 (`Model.fit(..., validation_data=(...))` or `Model.evaluate`). The evaluator task is preferable when you would like your workers not switching between training and evaluation, and built-in evaluation in `Model.fit` is preferable when you would like your evaluation to be distributed.\n"
7373
]
@@ -193,7 +193,7 @@
193193
"source": [
194194
"## TensorFlow 2: Evaluating a Keras model\n",
195195
"\n",
196-
"In TensorFlow 2, if you use the Keras `Model.fit` API for training, you can evaluate the model with `tf.keras.experimental.SidecarEvaluator`. You can also visualize the evaluation metrics in Tensorboard which is not shown in this guide.\n",
196+
"In TensorFlow 2, if you use the Keras `Model.fit` API for training, you can evaluate the model with `tf.keras.utils.SidecarEvaluator`. You can also visualize the evaluation metrics in Tensorboard which is not shown in this guide.\n",
197197
"\n",
198198
"To help demonstrate this, let's first start by defining and training the model:\n"
199199
]
@@ -240,7 +240,7 @@
240240
"id": "AhU3VTYZoDh-"
241241
},
242242
"source": [
243-
"Then, evaluate the model using `tf.keras.experimental.SidecarEvaluator`. In real training, it's recommended to use a separate job to conduct the evaluation to free up worker resources for training."
243+
"Then, evaluate the model using `tf.keras.utils.SidecarEvaluator`. In real training, it's recommended to use a separate job to conduct the evaluation to free up worker resources for training."
244244
]
245245
},
246246
{
@@ -254,7 +254,7 @@
254254
"data = tf.data.Dataset.from_tensor_slices((x_test, y_test))\n",
255255
"data = data.batch(64)\n",
256256
"\n",
257-
"tf.keras.experimental.SidecarEvaluator(\n",
257+
"tf.keras.utils.SidecarEvaluator(\n",
258258
" model=model,\n",
259259
" data=data,\n",
260260
" checkpoint_dir=log_dir,\n",
@@ -270,7 +270,7 @@
270270
"source": [
271271
"## Next steps\n",
272272
"\n",
273-
"- To learn more about sidecar evaluation consider reading the `tf.keras.experimental.SidecarEvaluator` API docs.\n",
273+
"- To learn more about sidecar evaluation consider reading the `tf.keras.utils.SidecarEvaluator` API docs.\n",
274274
"- To consider alternating training and evaluation in Keras consider reading about [other built-in methods](https://www.tensorflow.org/guide/keras/train_and_evaluate)."
275275
]
276276
}

0 commit comments

Comments
 (0)