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

Commit 5233253

Browse files
authored
Merge pull request #417 from rsepassi/push
v1.2.9
2 parents 75b75f2 + 729d8dd commit 5233253

File tree

10 files changed

+105
-439
lines changed

10 files changed

+105
-439
lines changed

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# How to Contribute
22

3+
# Issues
4+
5+
* Please tag your issue with `bug`, `feature request`, or `question` to help us
6+
effectively respond.
7+
* Please include the versions of TensorFlow and Tensor2Tensor you are running
8+
(run `pip list | grep tensor`)
9+
* Please provide the command line you ran as well as the log output.
10+
11+
# Pull Requests
12+
313
We'd love to accept your patches and contributions to this project. There are
414
just a few small guidelines you need to follow.
515

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.2.8',
8+
version='1.2.9',
99
description='Tensor2Tensor',
1010
author='Google Inc.',
1111
author_email='[email protected]',

tensor2tensor/bin/t2t-datagen

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ from tensor2tensor.data_generators import all_problems # pylint: disable=unused
4343
from tensor2tensor.data_generators import audio
4444
from tensor2tensor.data_generators import generator_utils
4545
from tensor2tensor.data_generators import snli
46-
from tensor2tensor.data_generators import translate
4746
from tensor2tensor.data_generators import wsj_parsing
4847
from tensor2tensor.utils import registry
4948
from tensor2tensor.utils import usr_dir
@@ -82,10 +81,10 @@ _SUPPORTED_PROBLEM_GENERATORS = {
8281
lambda: algorithmic_math.algebra_inverse(26, 0, 2, 100000),
8382
lambda: algorithmic_math.algebra_inverse(26, 3, 3, 10000)),
8483
"parsing_english_ptb8k": (
85-
lambda: translate.parsing_token_generator(
86-
FLAGS.data_dir, FLAGS.tmp_dir, True, 2**13),
87-
lambda: translate.parsing_token_generator(
88-
FLAGS.data_dir, FLAGS.tmp_dir, False, 2**13)),
84+
lambda: wsj_parsing.parsing_token_generator(
85+
FLAGS.data_dir, FLAGS.tmp_dir, True, 2**13, 2**9),
86+
lambda: wsj_parsing.parsing_token_generator(
87+
FLAGS.data_dir, FLAGS.tmp_dir, False, 2**13, 2**9)),
8988
"parsing_english_ptb16k": (
9089
lambda: wsj_parsing.parsing_token_generator(
9190
FLAGS.data_dir, FLAGS.tmp_dir, True, 2**14, 2**9),

tensor2tensor/models/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
from tensor2tensor.models import shake_shake
3838
from tensor2tensor.models import slicenet
3939
from tensor2tensor.models import transformer
40-
from tensor2tensor.models import transformer_adv
41-
from tensor2tensor.models import transformer_alternative
4240
from tensor2tensor.models import transformer_moe
4341
from tensor2tensor.models import transformer_revnet
4442
from tensor2tensor.models import transformer_sketch

tensor2tensor/models/shake_shake.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ def model_fn_body(self, features):
132132
@registry.register_hparams
133133
def shakeshake_cifar10():
134134
"""Parameters for CIFAR-10."""
135+
tf.logging.warning("shakeshake_cifar10 hparams have not been verified to "
136+
"achieve good performance.")
135137
hparams = common_hparams.basic_params1()
136138
# This leads to effective batch size 128 when number of GPUs is 1
137139
hparams.batch_size = 4096 * 8

tensor2tensor/models/transformer_adv.py

Lines changed: 0 additions & 233 deletions
This file was deleted.

0 commit comments

Comments
 (0)