Skip to content

Commit 050f9ec

Browse files
Merge pull request #2298 from jmarcinowski:patch-1
PiperOrigin-RevId: 671098293
2 parents 384b62a + c8ad7a4 commit 050f9ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

site/en/hub/caching.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ location `/tmp/tfhub_modules` (or whatever `os.path.join(tempfile.gettempdir(),
2929
Users who prefer persistent caching across system reboots can instead set
3030
`TFHUB_CACHE_DIR` to a location in their home directory. For example, a user of
3131
the bash shell on a Linux system can add a line like the following to
32-
`~/.bashrc`
32+
`~/.bashrc`:
3333

3434
```bash
3535
export TFHUB_CACHE_DIR=$HOME/.cache/tfhub_modules
@@ -41,7 +41,7 @@ persistent location, be aware that there is no automatic cleanup.
4141
### Reading from remote storage
4242

4343
Users can instruct the `tensorflow_hub` library to directly read models from
44-
remote storage (GCS) instead of downloading the models locally with
44+
remote storage (GCS) instead of downloading the models locally with:
4545

4646
```shell
4747
os.environ["TFHUB_MODEL_LOAD_FORMAT"] = "UNCOMPRESSED"
@@ -64,7 +64,7 @@ location by default. There are two workarounds for this situation:
6464
The easiest solution is to instruct the `tensorflow_hub` library to read the
6565
models from TF Hub's GCS bucket as explained above. Users with their own GCS
6666
bucket can instead specify a directory in their bucket as the cache location
67-
with code like
67+
with code like:
6868

6969
```python
7070
import os
@@ -83,4 +83,4 @@ load_options =
8383
tf.saved_model.LoadOptions(experimental_io_device='/job:localhost')
8484
reloaded_model = hub.load("https://tfhub.dev/...", options=load_options)
8585
```
86-
**Note:** See more information regarding valid handles [here](tf2_saved_model.md#model_handles).
86+
**Note:** See more information regarding valid handles [here](tf2_saved_model.md#model_handles).

0 commit comments

Comments
 (0)