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

Commit 64d1f96

Browse files
authored
Merge pull request #577 from rsepassi/push
v1.5.1
2 parents 0d464ff + 50f38d5 commit 64d1f96

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='tensor2tensor',
8-
version='1.5.0',
8+
version='1.5.1',
99
description='Tensor2Tensor',
1010
author='Google Inc.',
1111
author_email='[email protected]',

tensor2tensor/bin/t2t_trainer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ def save_metadata(hparams):
274274
# Save hparams as hparams.json
275275
hparams_fname = os.path.join(output_dir, "hparams.json")
276276
with tf.gfile.Open(hparams_fname, "w") as f:
277-
f.write(hparams.to_json(indent=0, sort_keys=True))
277+
# TODO(lukaszkaiser): use the first line once we require TF 1.5+.
278+
# f.write(hparams.to_json(indent=0, sort_keys=True))
279+
f.write(hparams.to_json())
278280

279281

280282
def execute_schedule(exp):

0 commit comments

Comments
 (0)