From 73f034deca5d58cbe571ef6f08e6d3a1d7781eb0 Mon Sep 17 00:00:00 2001 From: Ryan Sepassi Date: Thu, 8 Feb 2018 15:32:46 -0800 Subject: [PATCH 01/14] Update License year PiperOrigin-RevId: 185063168 --- tensor2tensor/__init__.py | 2 +- tensor2tensor/bin/__init__.py | 2 +- tensor2tensor/bin/make_tf_configs.py | 2 +- tensor2tensor/bin/t2t_avg_all.py | 2 +- tensor2tensor/bin/t2t_bleu.py | 2 +- tensor2tensor/bin/t2t_datagen.py | 2 +- tensor2tensor/bin/t2t_decoder.py | 2 +- tensor2tensor/bin/t2t_trainer.py | 4 +- tensor2tensor/bin/t2t_trainer_test.py | 2 +- tensor2tensor/bin/t2t_translate_all.py | 2 +- tensor2tensor/data_generators/__init__.py | 2 +- tensor2tensor/data_generators/algorithmic.py | 2 +- .../data_generators/algorithmic_math.py | 2 +- .../data_generators/algorithmic_math_test.py | 2 +- .../data_generators/algorithmic_test.py | 2 +- tensor2tensor/data_generators/all_problems.py | 2 +- .../data_generators/all_problems_test.py | 2 +- tensor2tensor/data_generators/audio.py | 2 +- tensor2tensor/data_generators/audio_test.py | 2 +- tensor2tensor/data_generators/celeba.py | 2 +- tensor2tensor/data_generators/cifar.py | 2 +- tensor2tensor/data_generators/cipher.py | 2 +- .../data_generators/cnn_dailymail.py | 2 +- tensor2tensor/data_generators/desc2code.py | 2 +- .../data_generators/desc2code_test.py | 2 +- tensor2tensor/data_generators/dna_encoder.py | 2 +- .../data_generators/dna_encoder_test.py | 2 +- tensor2tensor/data_generators/fsns.py | 2 +- .../data_generators/gene_expression.py | 2 +- .../data_generators/gene_expression_test.py | 2 +- .../data_generators/generator_utils.py | 2 +- .../data_generators/generator_utils_test.py | 2 +- tensor2tensor/data_generators/gym.py | 2 +- tensor2tensor/data_generators/ice_parsing.py | 2 +- tensor2tensor/data_generators/image_utils.py | 2 +- .../data_generators/image_utils_test.py | 2 +- tensor2tensor/data_generators/imagenet.py | 2 +- tensor2tensor/data_generators/imdb.py | 2 +- tensor2tensor/data_generators/inspect.py | 2 +- tensor2tensor/data_generators/librispeech.py | 2 +- tensor2tensor/data_generators/lm1b.py | 2 +- tensor2tensor/data_generators/mnist.py | 2 +- tensor2tensor/data_generators/mscoco.py | 2 +- tensor2tensor/data_generators/multinli.py | 2 +- tensor2tensor/data_generators/ocr.py | 2 +- tensor2tensor/data_generators/problem.py | 2 +- .../data_generators/problem_hparams.py | 2 +- tensor2tensor/data_generators/ptb.py | 2 +- tensor2tensor/data_generators/snli.py | 2 +- .../data_generators/speech_recognition.py | 2 +- tensor2tensor/data_generators/text_encoder.py | 2 +- .../text_encoder_build_subword.py | 2 +- .../data_generators/text_encoder_test.py | 2 +- tensor2tensor/data_generators/tokenizer.py | 2 +- .../data_generators/tokenizer_test.py | 2 +- tensor2tensor/data_generators/translate.py | 2 +- .../data_generators/translate_encs.py | 2 +- .../data_generators/translate_ende.py | 2 +- .../data_generators/translate_enfr.py | 2 +- .../data_generators/translate_enmk.py | 2 +- .../data_generators/translate_enzh.py | 2 +- .../data_generators/translate_test.py | 2 +- tensor2tensor/data_generators/twentybn.py | 2 +- tensor2tensor/data_generators/wiki.py | 2 +- tensor2tensor/data_generators/wsj_parsing.py | 2 +- tensor2tensor/insights/__init__.py | 2 +- tensor2tensor/insights/graph.py | 2 +- .../attention-visualization.html | 2 +- .../attention-visualization.js | 2 +- .../insights/polymer/common-types.js | 2 +- .../polymer/explore_view/explore-view.html | 2 +- .../polymer/explore_view/explore-view.js | 2 +- .../graph-visualization.html | 2 +- .../graph-visualization.js | 2 +- tensor2tensor/insights/polymer/index.html | 2 +- .../polymer/insights_app/insights-app.html | 2 +- .../polymer/insights_app/insights-app.js | 2 +- .../language-selector-content.html | 2 +- .../language-selector-content.js | 2 +- .../language_selector/language-selector.html | 2 +- .../language_selector/language-selector.js | 2 +- .../processing-visualization.html | 2 +- .../processing-visualization.js | 2 +- .../polymer/query_card/query-card.html | 2 +- .../insights/polymer/query_card/query-card.js | 2 +- .../insights/polymer/tensor2tensor.html | 2 +- .../translation-result.html | 2 +- .../translation_result/translation-result.js | 2 +- tensor2tensor/insights/query_processor.py | 2 +- tensor2tensor/insights/server.py | 2 +- tensor2tensor/insights/transformer_model.py | 2 +- tensor2tensor/layers/__init__.py | 2 +- tensor2tensor/layers/common_attention.py | 2 +- tensor2tensor/layers/common_attention_test.py | 2 +- tensor2tensor/layers/common_hparams.py | 2 +- .../layers/common_image_attention.py | 2 +- tensor2tensor/layers/common_layers.py | 2 +- tensor2tensor/layers/common_layers_test.py | 2 +- tensor2tensor/layers/modalities.py | 2 +- tensor2tensor/layers/modalities_test.py | 2 +- tensor2tensor/layers/rev_block.py | 2 +- tensor2tensor/layers/rev_block_test.py | 2 +- tensor2tensor/models/__init__.py | 3 +- tensor2tensor/models/aligned.py | 2 +- tensor2tensor/models/attention_lm.py | 2 +- tensor2tensor/models/attention_lm_moe.py | 2 +- tensor2tensor/models/basic.py | 2 +- tensor2tensor/models/bytenet.py | 2 +- tensor2tensor/models/bytenet_test.py | 2 +- tensor2tensor/models/cycle_gan.py | 2 +- tensor2tensor/models/gene_expression.py | 2 +- tensor2tensor/models/gene_expression_test.py | 2 +- tensor2tensor/models/lstm.py | 2 +- tensor2tensor/models/lstm_test.py | 2 +- tensor2tensor/models/multimodel.py | 2 +- tensor2tensor/models/multimodel_test.py | 2 +- tensor2tensor/models/neural_gpu.py | 2 +- tensor2tensor/models/neural_gpu_test.py | 2 +- tensor2tensor/models/resnet.py | 2 +- tensor2tensor/models/resnet_test.py | 2 +- tensor2tensor/models/revnet.py | 2 +- tensor2tensor/models/revnet_test.py | 2 +- tensor2tensor/models/rl.py | 127 ------------------ tensor2tensor/models/shake_shake.py | 2 +- tensor2tensor/models/slicenet.py | 2 +- tensor2tensor/models/slicenet_test.py | 2 +- tensor2tensor/models/super_lm.py | 2 +- tensor2tensor/models/transformer.py | 2 +- tensor2tensor/models/transformer_moe.py | 2 +- tensor2tensor/models/transformer_revnet.py | 2 +- .../models/transformer_revnet_test.py | 2 +- tensor2tensor/models/transformer_sketch.py | 2 +- tensor2tensor/models/transformer_test.py | 2 +- tensor2tensor/models/transformer_vae.py | 2 +- tensor2tensor/models/vanilla_gan.py | 2 +- tensor2tensor/models/xception.py | 2 +- tensor2tensor/models/xception_test.py | 2 +- tensor2tensor/notebooks/hello_t2t.ipynb | 2 +- tensor2tensor/problems.py | 2 +- tensor2tensor/problems_test.py | 2 +- tensor2tensor/rl/README.md | 2 +- tensor2tensor/rl/__init__.py | 2 +- tensor2tensor/rl/collect.py | 25 ++-- tensor2tensor/rl/envs/__init__.py | 2 +- tensor2tensor/rl/envs/batch_env.py | 2 +- tensor2tensor/rl/envs/in_graph_batch_env.py | 2 +- tensor2tensor/rl/envs/utils.py | 2 +- tensor2tensor/rl/networks.py | 69 ++++++++++ tensor2tensor/rl/ppo.py | 45 ++----- tensor2tensor/rl/rl_trainer_lib.py | 65 ++++++--- tensor2tensor/rl/rl_trainer_lib_test.py | 17 +-- tensor2tensor/rl/t2t_rl_trainer.py | 20 +-- tensor2tensor/serving/__init__.py | 2 +- tensor2tensor/serving/export.py | 2 +- tensor2tensor/serving/query.py | 2 +- .../test_data/example_usr_dir/__init__.py | 2 +- .../test_data/example_usr_dir/my_submodule.py | 2 +- tensor2tensor/utils/__init__.py | 2 +- tensor2tensor/utils/avg_checkpoints.py | 2 +- tensor2tensor/utils/beam_search.py | 2 +- tensor2tensor/utils/beam_search_test.py | 2 +- tensor2tensor/utils/bleu_hook.py | 2 +- tensor2tensor/utils/bleu_hook_test.py | 2 +- .../utils/checkpoint_compatibility_test.py | 2 +- tensor2tensor/utils/cloud_mlengine.py | 2 +- tensor2tensor/utils/cloud_tpu.py | 2 +- tensor2tensor/utils/data_reader.py | 2 +- tensor2tensor/utils/data_reader_test.py | 2 +- tensor2tensor/utils/decoding.py | 2 +- tensor2tensor/utils/devices.py | 2 +- tensor2tensor/utils/diet.py | 2 +- tensor2tensor/utils/diet_test.py | 2 +- tensor2tensor/utils/expert_utils.py | 2 +- tensor2tensor/utils/expert_utils_test.py | 2 +- tensor2tensor/utils/flags.py | 2 +- tensor2tensor/utils/get_rouge.py | 2 +- tensor2tensor/utils/metrics.py | 2 +- tensor2tensor/utils/metrics_hook.py | 2 +- tensor2tensor/utils/metrics_hook_test.py | 2 +- tensor2tensor/utils/metrics_test.py | 2 +- tensor2tensor/utils/modality.py | 2 +- tensor2tensor/utils/optimize.py | 2 +- tensor2tensor/utils/registry.py | 2 +- tensor2tensor/utils/registry_test.py | 2 +- tensor2tensor/utils/rouge.py | 17 +-- tensor2tensor/utils/rouge_test.py | 2 +- tensor2tensor/utils/t2t_model.py | 2 +- tensor2tensor/utils/trainer_lib.py | 2 +- tensor2tensor/utils/trainer_lib_test.py | 2 +- tensor2tensor/utils/usr_dir.py | 2 +- tensor2tensor/utils/yellowfin.py | 2 +- tensor2tensor/utils/yellowfin_test.py | 2 +- tensor2tensor/visualization/__init__.py | 2 +- tensor2tensor/visualization/attention.py | 2 +- tensor2tensor/visualization/visualization.py | 2 +- .../visualization/visualization_test.py | 2 +- 196 files changed, 332 insertions(+), 432 deletions(-) delete mode 100644 tensor2tensor/models/rl.py create mode 100644 tensor2tensor/rl/networks.py diff --git a/tensor2tensor/__init__.py b/tensor2tensor/__init__.py index 3f714ce1f..4bd418a74 100644 --- a/tensor2tensor/__init__.py +++ b/tensor2tensor/__init__.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/bin/__init__.py b/tensor2tensor/bin/__init__.py index 3f714ce1f..4bd418a74 100644 --- a/tensor2tensor/bin/__init__.py +++ b/tensor2tensor/bin/__init__.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/bin/make_tf_configs.py b/tensor2tensor/bin/make_tf_configs.py index ce0d638d6..85ba874f3 100644 --- a/tensor2tensor/bin/make_tf_configs.py +++ b/tensor2tensor/bin/make_tf_configs.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/bin/t2t_avg_all.py b/tensor2tensor/bin/t2t_avg_all.py index 6e2a3088e..66bac86fb 100644 --- a/tensor2tensor/bin/t2t_avg_all.py +++ b/tensor2tensor/bin/t2t_avg_all.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/bin/t2t_bleu.py b/tensor2tensor/bin/t2t_bleu.py index 5db83965d..40d7ec1cb 100644 --- a/tensor2tensor/bin/t2t_bleu.py +++ b/tensor2tensor/bin/t2t_bleu.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/bin/t2t_datagen.py b/tensor2tensor/bin/t2t_datagen.py index 8c91b7ee0..d00c54f59 100644 --- a/tensor2tensor/bin/t2t_datagen.py +++ b/tensor2tensor/bin/t2t_datagen.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/bin/t2t_decoder.py b/tensor2tensor/bin/t2t_decoder.py index e7ae6b74a..dd2206752 100644 --- a/tensor2tensor/bin/t2t_decoder.py +++ b/tensor2tensor/bin/t2t_decoder.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/bin/t2t_trainer.py b/tensor2tensor/bin/t2t_trainer.py index 018e7c270..82a74d3e5 100644 --- a/tensor2tensor/bin/t2t_trainer.py +++ b/tensor2tensor/bin/t2t_trainer.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -274,7 +274,7 @@ 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)) + f.write(hparams.to_json()) def execute_schedule(exp): diff --git a/tensor2tensor/bin/t2t_trainer_test.py b/tensor2tensor/bin/t2t_trainer_test.py index b1f38cec5..1f4569e60 100644 --- a/tensor2tensor/bin/t2t_trainer_test.py +++ b/tensor2tensor/bin/t2t_trainer_test.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/bin/t2t_translate_all.py b/tensor2tensor/bin/t2t_translate_all.py index 40046e883..249068dad 100644 --- a/tensor2tensor/bin/t2t_translate_all.py +++ b/tensor2tensor/bin/t2t_translate_all.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/__init__.py b/tensor2tensor/data_generators/__init__.py index 3f714ce1f..4bd418a74 100644 --- a/tensor2tensor/data_generators/__init__.py +++ b/tensor2tensor/data_generators/__init__.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/algorithmic.py b/tensor2tensor/data_generators/algorithmic.py index 3c1d5468f..ddb456cb1 100644 --- a/tensor2tensor/data_generators/algorithmic.py +++ b/tensor2tensor/data_generators/algorithmic.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/algorithmic_math.py b/tensor2tensor/data_generators/algorithmic_math.py index 93c8ad117..c3a028b12 100644 --- a/tensor2tensor/data_generators/algorithmic_math.py +++ b/tensor2tensor/data_generators/algorithmic_math.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/algorithmic_math_test.py b/tensor2tensor/data_generators/algorithmic_math_test.py index c7fdfa156..ce5310b8e 100644 --- a/tensor2tensor/data_generators/algorithmic_math_test.py +++ b/tensor2tensor/data_generators/algorithmic_math_test.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/algorithmic_test.py b/tensor2tensor/data_generators/algorithmic_test.py index bcd61216e..5d954fd14 100644 --- a/tensor2tensor/data_generators/algorithmic_test.py +++ b/tensor2tensor/data_generators/algorithmic_test.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/all_problems.py b/tensor2tensor/data_generators/all_problems.py index 80734e06d..cf730bc69 100644 --- a/tensor2tensor/data_generators/all_problems.py +++ b/tensor2tensor/data_generators/all_problems.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/all_problems_test.py b/tensor2tensor/data_generators/all_problems_test.py index de84a0bf3..2cad7ee44 100644 --- a/tensor2tensor/data_generators/all_problems_test.py +++ b/tensor2tensor/data_generators/all_problems_test.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/audio.py b/tensor2tensor/data_generators/audio.py index d0747a88c..1f92ee939 100644 --- a/tensor2tensor/data_generators/audio.py +++ b/tensor2tensor/data_generators/audio.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/audio_test.py b/tensor2tensor/data_generators/audio_test.py index 57e4e1ccc..81a55686d 100644 --- a/tensor2tensor/data_generators/audio_test.py +++ b/tensor2tensor/data_generators/audio_test.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/celeba.py b/tensor2tensor/data_generators/celeba.py index 5b85c2590..cd27e5715 100644 --- a/tensor2tensor/data_generators/celeba.py +++ b/tensor2tensor/data_generators/celeba.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/cifar.py b/tensor2tensor/data_generators/cifar.py index 0c03ebc30..881e52a7e 100644 --- a/tensor2tensor/data_generators/cifar.py +++ b/tensor2tensor/data_generators/cifar.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/cipher.py b/tensor2tensor/data_generators/cipher.py index 977174880..d7147547b 100644 --- a/tensor2tensor/data_generators/cipher.py +++ b/tensor2tensor/data_generators/cipher.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/cnn_dailymail.py b/tensor2tensor/data_generators/cnn_dailymail.py index 636f04a97..2771f4b0c 100644 --- a/tensor2tensor/data_generators/cnn_dailymail.py +++ b/tensor2tensor/data_generators/cnn_dailymail.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/desc2code.py b/tensor2tensor/data_generators/desc2code.py index 174bd8107..845cecd70 100644 --- a/tensor2tensor/data_generators/desc2code.py +++ b/tensor2tensor/data_generators/desc2code.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/desc2code_test.py b/tensor2tensor/data_generators/desc2code_test.py index 79992296b..61f059789 100644 --- a/tensor2tensor/data_generators/desc2code_test.py +++ b/tensor2tensor/data_generators/desc2code_test.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/dna_encoder.py b/tensor2tensor/data_generators/dna_encoder.py index f084c9cd2..9db20de42 100644 --- a/tensor2tensor/data_generators/dna_encoder.py +++ b/tensor2tensor/data_generators/dna_encoder.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/dna_encoder_test.py b/tensor2tensor/data_generators/dna_encoder_test.py index a84f06442..a32e3f2bf 100644 --- a/tensor2tensor/data_generators/dna_encoder_test.py +++ b/tensor2tensor/data_generators/dna_encoder_test.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/fsns.py b/tensor2tensor/data_generators/fsns.py index 938931c4c..8a9cfced4 100644 --- a/tensor2tensor/data_generators/fsns.py +++ b/tensor2tensor/data_generators/fsns.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/gene_expression.py b/tensor2tensor/data_generators/gene_expression.py index 477e04017..29d7819f2 100644 --- a/tensor2tensor/data_generators/gene_expression.py +++ b/tensor2tensor/data_generators/gene_expression.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/gene_expression_test.py b/tensor2tensor/data_generators/gene_expression_test.py index 797170070..8a7ccd55a 100644 --- a/tensor2tensor/data_generators/gene_expression_test.py +++ b/tensor2tensor/data_generators/gene_expression_test.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/generator_utils.py b/tensor2tensor/data_generators/generator_utils.py index b73b63d74..d25e5c621 100644 --- a/tensor2tensor/data_generators/generator_utils.py +++ b/tensor2tensor/data_generators/generator_utils.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/generator_utils_test.py b/tensor2tensor/data_generators/generator_utils_test.py index f058428fb..0460ef2e7 100644 --- a/tensor2tensor/data_generators/generator_utils_test.py +++ b/tensor2tensor/data_generators/generator_utils_test.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/gym.py b/tensor2tensor/data_generators/gym.py index 27be9a71b..d1a1cdc37 100644 --- a/tensor2tensor/data_generators/gym.py +++ b/tensor2tensor/data_generators/gym.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/ice_parsing.py b/tensor2tensor/data_generators/ice_parsing.py index fdb53430a..eea2616b5 100644 --- a/tensor2tensor/data_generators/ice_parsing.py +++ b/tensor2tensor/data_generators/ice_parsing.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/image_utils.py b/tensor2tensor/data_generators/image_utils.py index 78fdde262..3eb571865 100644 --- a/tensor2tensor/data_generators/image_utils.py +++ b/tensor2tensor/data_generators/image_utils.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/image_utils_test.py b/tensor2tensor/data_generators/image_utils_test.py index 5a7afc3b7..875863338 100644 --- a/tensor2tensor/data_generators/image_utils_test.py +++ b/tensor2tensor/data_generators/image_utils_test.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/imagenet.py b/tensor2tensor/data_generators/imagenet.py index 1ca2ec3e2..8fb6679ff 100644 --- a/tensor2tensor/data_generators/imagenet.py +++ b/tensor2tensor/data_generators/imagenet.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/imdb.py b/tensor2tensor/data_generators/imdb.py index 22e674098..61587da6e 100644 --- a/tensor2tensor/data_generators/imdb.py +++ b/tensor2tensor/data_generators/imdb.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/inspect.py b/tensor2tensor/data_generators/inspect.py index 0293ca9c4..0b113bb98 100644 --- a/tensor2tensor/data_generators/inspect.py +++ b/tensor2tensor/data_generators/inspect.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/librispeech.py b/tensor2tensor/data_generators/librispeech.py index 0c59824c1..d14cc8868 100644 --- a/tensor2tensor/data_generators/librispeech.py +++ b/tensor2tensor/data_generators/librispeech.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/lm1b.py b/tensor2tensor/data_generators/lm1b.py index cd0eb8e3c..b08ec9e3f 100644 --- a/tensor2tensor/data_generators/lm1b.py +++ b/tensor2tensor/data_generators/lm1b.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/mnist.py b/tensor2tensor/data_generators/mnist.py index 9a6792b62..5fefbd476 100644 --- a/tensor2tensor/data_generators/mnist.py +++ b/tensor2tensor/data_generators/mnist.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/mscoco.py b/tensor2tensor/data_generators/mscoco.py index 8dc1e1bba..2d58b97b5 100644 --- a/tensor2tensor/data_generators/mscoco.py +++ b/tensor2tensor/data_generators/mscoco.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/multinli.py b/tensor2tensor/data_generators/multinli.py index acd3a2c58..e70252005 100644 --- a/tensor2tensor/data_generators/multinli.py +++ b/tensor2tensor/data_generators/multinli.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/ocr.py b/tensor2tensor/data_generators/ocr.py index 8e92165bd..924483d5a 100644 --- a/tensor2tensor/data_generators/ocr.py +++ b/tensor2tensor/data_generators/ocr.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/problem.py b/tensor2tensor/data_generators/problem.py index a2c330c2d..c5b253c3c 100644 --- a/tensor2tensor/data_generators/problem.py +++ b/tensor2tensor/data_generators/problem.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/problem_hparams.py b/tensor2tensor/data_generators/problem_hparams.py index 576a27a79..c69a78eb9 100644 --- a/tensor2tensor/data_generators/problem_hparams.py +++ b/tensor2tensor/data_generators/problem_hparams.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/ptb.py b/tensor2tensor/data_generators/ptb.py index 31bc83c0a..19f20c90a 100644 --- a/tensor2tensor/data_generators/ptb.py +++ b/tensor2tensor/data_generators/ptb.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/snli.py b/tensor2tensor/data_generators/snli.py index cd4ff723d..8533c72c2 100644 --- a/tensor2tensor/data_generators/snli.py +++ b/tensor2tensor/data_generators/snli.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/speech_recognition.py b/tensor2tensor/data_generators/speech_recognition.py index e17e4de85..6d37565b8 100644 --- a/tensor2tensor/data_generators/speech_recognition.py +++ b/tensor2tensor/data_generators/speech_recognition.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/text_encoder.py b/tensor2tensor/data_generators/text_encoder.py index d43236945..e974a523d 100644 --- a/tensor2tensor/data_generators/text_encoder.py +++ b/tensor2tensor/data_generators/text_encoder.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/text_encoder_build_subword.py b/tensor2tensor/data_generators/text_encoder_build_subword.py index 0c366c896..1bd904f62 100644 --- a/tensor2tensor/data_generators/text_encoder_build_subword.py +++ b/tensor2tensor/data_generators/text_encoder_build_subword.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/text_encoder_test.py b/tensor2tensor/data_generators/text_encoder_test.py index 273810684..ff6450dc8 100644 --- a/tensor2tensor/data_generators/text_encoder_test.py +++ b/tensor2tensor/data_generators/text_encoder_test.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/tokenizer.py b/tensor2tensor/data_generators/tokenizer.py index 5cfd7c42e..c023627c2 100644 --- a/tensor2tensor/data_generators/tokenizer.py +++ b/tensor2tensor/data_generators/tokenizer.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/tokenizer_test.py b/tensor2tensor/data_generators/tokenizer_test.py index 065a32e91..ac4cd0cca 100644 --- a/tensor2tensor/data_generators/tokenizer_test.py +++ b/tensor2tensor/data_generators/tokenizer_test.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/translate.py b/tensor2tensor/data_generators/translate.py index 95f5844c1..20c5081e7 100644 --- a/tensor2tensor/data_generators/translate.py +++ b/tensor2tensor/data_generators/translate.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/translate_encs.py b/tensor2tensor/data_generators/translate_encs.py index ad0fe828d..b5f72fc9a 100644 --- a/tensor2tensor/data_generators/translate_encs.py +++ b/tensor2tensor/data_generators/translate_encs.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/translate_ende.py b/tensor2tensor/data_generators/translate_ende.py index 2124be32a..f9be14681 100644 --- a/tensor2tensor/data_generators/translate_ende.py +++ b/tensor2tensor/data_generators/translate_ende.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/translate_enfr.py b/tensor2tensor/data_generators/translate_enfr.py index 921834000..18e99d069 100644 --- a/tensor2tensor/data_generators/translate_enfr.py +++ b/tensor2tensor/data_generators/translate_enfr.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/translate_enmk.py b/tensor2tensor/data_generators/translate_enmk.py index aa1bac8b1..70630c444 100644 --- a/tensor2tensor/data_generators/translate_enmk.py +++ b/tensor2tensor/data_generators/translate_enmk.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/translate_enzh.py b/tensor2tensor/data_generators/translate_enzh.py index 0a645b3bb..27f621c85 100644 --- a/tensor2tensor/data_generators/translate_enzh.py +++ b/tensor2tensor/data_generators/translate_enzh.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/translate_test.py b/tensor2tensor/data_generators/translate_test.py index e357e11fc..f28b47818 100644 --- a/tensor2tensor/data_generators/translate_test.py +++ b/tensor2tensor/data_generators/translate_test.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/twentybn.py b/tensor2tensor/data_generators/twentybn.py index c70313767..7d83ce55e 100644 --- a/tensor2tensor/data_generators/twentybn.py +++ b/tensor2tensor/data_generators/twentybn.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/wiki.py b/tensor2tensor/data_generators/wiki.py index 828ef2246..4f6dd57bb 100644 --- a/tensor2tensor/data_generators/wiki.py +++ b/tensor2tensor/data_generators/wiki.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/data_generators/wsj_parsing.py b/tensor2tensor/data_generators/wsj_parsing.py index 4b1dbdd80..bef82eb1b 100644 --- a/tensor2tensor/data_generators/wsj_parsing.py +++ b/tensor2tensor/data_generators/wsj_parsing.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/insights/__init__.py b/tensor2tensor/insights/__init__.py index 3f714ce1f..4bd418a74 100644 --- a/tensor2tensor/insights/__init__.py +++ b/tensor2tensor/insights/__init__.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/insights/graph.py b/tensor2tensor/insights/graph.py index a733998b8..17e18ea3c 100644 --- a/tensor2tensor/insights/graph.py +++ b/tensor2tensor/insights/graph.py @@ -1,5 +1,5 @@ # coding=utf-8 -# Copyright 2017 The Tensor2Tensor Authors. +# Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tensor2tensor/insights/polymer/attention_visualization/attention-visualization.html b/tensor2tensor/insights/polymer/attention_visualization/attention-visualization.html index 4ec11ace8..02db7fe09 100644 --- a/tensor2tensor/insights/polymer/attention_visualization/attention-visualization.html +++ b/tensor2tensor/insights/polymer/attention_visualization/attention-visualization.html @@ -1,6 +1,6 @@