From eed46f38b77b83cdd3df4c20a1a12e1d20a31dac Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 21 Dec 2019 18:01:03 +0100 Subject: [PATCH] Fix E302 flake8 warning (x3). --- templates/adding_a_new_model/modeling_tf_xxx.py | 1 + templates/adding_a_new_model/modeling_xxx.py | 1 + transformers/modeling_t5.py | 1 + 3 files changed, 3 insertions(+) diff --git a/templates/adding_a_new_model/modeling_tf_xxx.py b/templates/adding_a_new_model/modeling_tf_xxx.py index d5f6c1e74ce..6478264ffe6 100644 --- a/templates/adding_a_new_model/modeling_tf_xxx.py +++ b/templates/adding_a_new_model/modeling_tf_xxx.py @@ -49,6 +49,7 @@ TF_XXX_PRETRAINED_MODEL_ARCHIVE_MAP = { "xxx-large-uncased": "https://s3.amazonaws.com/models.huggingface.co/bert/xxx-large-uncased-tf_model.h5", } + #################################################### # TF 2.0 Models are constructed using Keras imperative API by sub-classing # - tf.keras.layers.Layer for the layers and diff --git a/templates/adding_a_new_model/modeling_xxx.py b/templates/adding_a_new_model/modeling_xxx.py index e4e72c97f39..5a5f76b3d07 100644 --- a/templates/adding_a_new_model/modeling_xxx.py +++ b/templates/adding_a_new_model/modeling_xxx.py @@ -49,6 +49,7 @@ XXX_PRETRAINED_MODEL_ARCHIVE_MAP = { "xxx-large-uncased": "https://s3.amazonaws.com/models.huggingface.co/bert/xxx-large-uncased-pytorch_model.bin", } + #################################################### # This is a conversion method from TF 1.0 to PyTorch # More details: https://medium.com/huggingface/from-tensorflow-to-pytorch-265f40ef2a28 diff --git a/transformers/modeling_t5.py b/transformers/modeling_t5.py index b67f01228ed..a1024d47dd4 100644 --- a/transformers/modeling_t5.py +++ b/transformers/modeling_t5.py @@ -49,6 +49,7 @@ T5_PRETRAINED_MODEL_ARCHIVE_MAP = { "t5-11b": "https://s3.amazonaws.com/models.huggingface.co/bert/t5-11b-pytorch_model.bin", } + #################################################### # This is a conversion method from TF 1.0 to PyTorch # More details: https://medium.com/huggingface/from-tensorflow-to-pytorch-265f40ef2a28