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

Commit 970dac9

Browse files
authored
Merge pull request #451 from rsepassi/push
v1.3.1
2 parents bb1173a + 889fc84 commit 970dac9

31 files changed

+1543
-587
lines changed

Diff for: README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,9 @@ t2t-decoder \
126126
--output_dir=$TRAIN_DIR \
127127
--decode_hparams="beam_size=$BEAM_SIZE,alpha=$ALPHA" \
128128
--decode_from_file=$DECODE_FILE
129-
--decode_to_file=translation.en
130-
```
131-
132-
# Eval BLEU
133129
134-
t2t-bleu --translation=translation.en --reference=ref-translation.de
130+
cat $DECODE_FILE.$MODEL.$HPARAMS.beam$BEAM_SIZE.alpha$ALPHA.decodes
131+
```
135132

136133
---
137134

Diff for: docs/example_life.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ hooks in the `Problem` class and the model's `HParams` object (typically
7575
registered in the model's file and specified by the `--hparams_set` flag).
7676

7777
The entire input pipeline is implemented with the new `tf.data.Dataset` API
78-
(previously `tf.contrib.data.Dataset`).
78+
(previously `tf.data.Dataset`).
7979

8080
The key function in the codebase for the input pipeline is
8181
[`data_reader.input_pipeline`](https://github.com/tensorflow/tensor2tensor/tree/master/tensor2tensor/utils/data_reader.py).

Diff for: setup.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='tensor2tensor',
8-
version='1.3.0',
8+
version='1.3.1',
99
description='Tensor2Tensor',
1010
author='Google Inc.',
1111
author_email='[email protected]',
@@ -15,16 +15,14 @@
1515
package_data={
1616
'tensor2tensor.data_generators': ['test_data/*'],
1717
'tensor2tensor.visualization': [
18-
'attention.js',
19-
'TransformerVisualization.ipynb'
18+
'attention.js', 'TransformerVisualization.ipynb'
2019
],
2120
},
2221
scripts=[
2322
'tensor2tensor/bin/t2t-trainer',
2423
'tensor2tensor/bin/t2t-datagen',
2524
'tensor2tensor/bin/t2t-decoder',
2625
'tensor2tensor/bin/t2t-make-tf-configs',
27-
'tensor2tensor/bin/t2t-bleu',
2826
],
2927
install_requires=[
3028
'bz2file',
@@ -35,8 +33,8 @@
3533
'six',
3634
],
3735
extras_require={
38-
'tensorflow': ['tensorflow>=1.3.0'],
39-
'tensorflow_gpu': ['tensorflow-gpu>=1.3.0'],
36+
'tensorflow': ['tensorflow>=1.4.0'],
37+
'tensorflow_gpu': ['tensorflow-gpu>=1.4.0'],
4038
'tests': ['pytest', 'h5py', 'mock'],
4139
},
4240
classifiers=[
@@ -46,4 +44,5 @@
4644
'License :: OSI Approved :: Apache Software License',
4745
'Topic :: Scientific/Engineering :: Artificial Intelligence',
4846
],
49-
keywords='tensorflow machine learning',)
47+
keywords='tensorflow machine learning',
48+
)

Diff for: tensor2tensor/bin/t2t-bleu

-200
This file was deleted.

Diff for: tensor2tensor/bin/t2t-datagen

100755100644
File mode changed.

Diff for: tensor2tensor/bin/t2t-decoder

100755100644
+2-5
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ import tensorflow as tf
4646
flags = tf.flags
4747
FLAGS = flags.FLAGS
4848

49-
flags.DEFINE_string("output_dir", "",
50-
"Training directory where the latest checkpoint is used.")
51-
flags.DEFINE_string("checkpoint_path", None,
52-
"Path to the model checkpoint. Overrides output_dir.")
49+
flags.DEFINE_string("output_dir", "", "Training directory to load from.")
5350
flags.DEFINE_string("decode_from_file", None,
5451
"Path to the source file for decoding")
5552
flags.DEFINE_string("decode_to_file", None,
@@ -93,7 +90,7 @@ def main(_):
9390
decoding.decode_interactively(estimator, decode_hp)
9491
elif FLAGS.decode_from_file:
9592
decoding.decode_from_file(estimator, FLAGS.decode_from_file, decode_hp,
96-
FLAGS.decode_to_file, checkpoint_path=FLAGS.checkpoint_path)
93+
FLAGS.decode_to_file)
9794
else:
9895
decoding.decode_from_dataset(
9996
estimator,

Diff for: tensor2tensor/bin/t2t-make-tf-configs

100755100644
File mode changed.

Diff for: tensor2tensor/bin/t2t-trainer

100755100644
File mode changed.

0 commit comments

Comments
 (0)