Skip to content

Commit 08b3887

Browse files
Merge pull request #2132 from synandi:patch-12
PiperOrigin-RevId: 482008621
2 parents c9a9d01 + 5d58456 commit 08b3887

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

site/en/guide/migrate/migration_debugging.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
" disabled\n",
101101
" * Align random number generation, check numerical equivalence in inference\n",
102102
" * (Optional) Check checkpoints are loaded properly and TF1.x/TF2 models\n",
103-
" generate identitcal output\n",
103+
" generate identical output\n",
104104
"\n",
105105
" b. On single GPU/TPU device\n",
106106
"\n",
@@ -124,7 +124,7 @@
124124
"\n",
125125
" d. With multi-device strategies (check the intro for [MultiProcessRunner](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/distribute/multi_process_runner.py#L108) at the bottom)\n",
126126
"\n",
127-
"4. End-to-end covergence testing on real dataset\n",
127+
"4. End-to-end convergence testing on real dataset\n",
128128
"\n",
129129
" a. Check training behaviors with TensorBoard\n",
130130
"\n",
@@ -586,7 +586,7 @@
586586
" # adopt different tolerance strategies before and after 10 steps\n",
587587
" first_n_step = 10\n",
588588
"\n",
589-
" # abosolute difference is limited below 1e-5\n",
589+
" # absolute difference is limited below 1e-5\n",
590590
" # set `equal_nan` to be False to detect potential NaN loss issues\n",
591591
" abosolute_tolerance = 1e-5\n",
592592
" np.testing.assert_allclose(\n",
@@ -622,7 +622,7 @@
622622
"\n",
623623
"tf.print vs print/logging.info\n",
624624
"\n",
625-
"- With configurable arguments, `tf.print` can recursively display show first and last few elements of each dimension for printed tensors. Check the [API docs](https://www.tensorflow.org/api_docs/python/tf/print) for details.\n",
625+
"- With configurable arguments, `tf.print` can recursively display the first and last few elements of each dimension for printed tensors. Check the [API docs](https://www.tensorflow.org/api_docs/python/tf/print) for details.\n",
626626
"- For eager execution, both `print` and `tf.print` print the value of the tensor. But `print` may involve device-to-host copy, which can potentially slow down your code. \n",
627627
"- For graph mode including usage inside `tf.function`, you need to use `tf.print` to print the actual tensor value. `tf.print` is compiled into an op in the graph, whereas `print` and `logging.info` only log at tracing time, which is often not what you want. \n",
628628
"- `tf.print` also supports printing composite tensors like `tf.RaggedTensor` and `tf.sparse.SparseTensor`.\n",

0 commit comments

Comments
 (0)