Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
Bump back json printing to support TF 1.4 and make a small release.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 185328910
  • Loading branch information
Lukasz Kaiser authored and Ryan Sepassi committed Feb 12, 2018
1 parent 0d464ff commit 50f38d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='tensor2tensor',
version='1.5.0',
version='1.5.1',
description='Tensor2Tensor',
author='Google Inc.',
author_email='[email protected]',
Expand Down
4 changes: 3 additions & 1 deletion tensor2tensor/bin/t2t_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ def save_metadata(hparams):
# Save hparams as hparams.json
hparams_fname = os.path.join(output_dir, "hparams.json")
with tf.gfile.Open(hparams_fname, "w") as f:
f.write(hparams.to_json(indent=0, sort_keys=True))
# TODO(lukaszkaiser): use the first line once we require TF 1.5+.
# f.write(hparams.to_json(indent=0, sort_keys=True))
f.write(hparams.to_json())


def execute_schedule(exp):
Expand Down

0 comments on commit 50f38d5

Please sign in to comment.