-
Notifications
You must be signed in to change notification settings - Fork 19.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix data_utils.py when name ends with
.tar.gz
1. was giving an `UnboundLocal` error. 2. If `fpath` and `untar_fpath` are set to the same value the `untar` doesn't run. So ensure that `fname` always has `.tar.gz`, and `untar_fpath` never does. The old behavior (before the previous change) was to always add `.tar.gz`, giving `.tar.gz.tar.gz` files. That seems wrong too. Fixes tensorflow_docs/site/en/tutorials/load_data/text.ipynb PiperOrigin-RevId: 380934634
- Loading branch information
1 parent
3f90361
commit 2f1149d
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters