Skip to content

Commit baa67e7

Browse files
imsheridanrmlarsen
authored andcommitted
Fix the tpu related broken link especially for imagenet_to_gcs.py (tensorflow#18126)
1 parent bdd48ec commit baa67e7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tensorflow/contrib/tpu/tpu_estimator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ It is always recommended to port a small, simple model first to make sure that
172172
you are familiar with the basic concepts of `TPUEstimator` and test end-to-end
173173
behavior. Once your simple model runs, gradually add more functionality.
174174
In addition, there are several sample models, available at
175-
[github.com/tensorflow/tpu-demos](https://github.com/tensorflow/tpu-demos).
175+
[github.com/tensorflow/tpu](https://github.com/tensorflow/tpu).
176176

177177
To convert your code from the vanilla `Estimator` class to use TPUs, change the
178178
following (note some of the details may change over time):

tensorflow/docs_src/programmers_guide/using_tpu.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This doc is aimed at users who:
1111
using an existing model.
1212
* Have, perhaps, skimmed the code of an example TPU model
1313
[[1]](https://github.com/tensorflow/models/blob/master/official/mnist/mnist_tpu.py)
14-
[[2]](https://github.com/tensorflow/tpu-demos/tree/master/cloud_tpu/models).
14+
[[2]](https://github.com/tensorflow/tpu/tree/master/models).
1515
* Are interested in porting an existing `Estimator` model to
1616
run on Cloud TPUs
1717

@@ -288,7 +288,7 @@ If shape inference has failed, but the shape is known it is possible to
288288
impose the correct shape using `tf.set_shape()`.
289289

290290
In the example below the shape
291-
inference algorithm fails, but it is corrected using `set_shape`:
291+
inference algorithm fails, but it is correctly using `set_shape`:
292292

293293
```
294294
>>> x = tf.zeros(tf.constant([1,2,3])+1)
@@ -371,10 +371,10 @@ in bytes. A minimum of a few MB (`buffer_size=8*1024*1024`) is recommended so
371371
that data is available when needed.
372372

373373
The TPU-demos repo includes
374-
[a script](https://github.com/tensorflow/tpu-demos/blob/master/cloud_tpu/datasets/imagenet_to_gcs.py)
374+
[a script](https://github.com/tensorflow/tpu/blob/master/tools/datasets/imagenet_to_gcs.py)
375375
for downloading the imagenet dataset and converting it to an appropriate format.
376376
This together with the imagenet
377-
[models](https://github.com/tensorflow/tpu-demos/tree/master/cloud_tpu/models)
377+
[models](https://github.com/tensorflow/tpu/tree/master/models)
378378
included in the repo demonstrate all of these best-practices.
379379

380380

@@ -387,7 +387,7 @@ For details on how to actually set up and run a Cloud TPU see:
387387
This document is by no means exhaustive. The best source of more detail on how
388388
to make a Cloud TPU compatible model are the example models published in:
389389

390-
* The [TPU Demos Repository.](https://github.com/tensorflow/tpu-demos/)
390+
* The [TPU Demos Repository.](https://github.com/tensorflow/tpu)
391391

392392
For more information about tuning TensorFlow code for performance see:
393393

0 commit comments

Comments
 (0)