Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
ce50305e
Unverified
Commit
ce50305e
authored
Dec 22, 2019
by
Aymeric Augustin
Committed by
GitHub
Dec 22, 2019
Browse files
Merge pull request #2270 from aaugustin/remove-python-2
Remove support for Python 2
parents
b6ea0f43
1a948d70
Changes
155
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
3 additions
and
23 deletions
+3
-23
src/transformers/configuration_auto.py
src/transformers/configuration_auto.py
+0
-1
src/transformers/configuration_bert.py
src/transformers/configuration_bert.py
+0
-1
src/transformers/configuration_camembert.py
src/transformers/configuration_camembert.py
+0
-1
src/transformers/configuration_ctrl.py
src/transformers/configuration_ctrl.py
+0
-1
src/transformers/configuration_distilbert.py
src/transformers/configuration_distilbert.py
+1
-1
src/transformers/configuration_gpt2.py
src/transformers/configuration_gpt2.py
+0
-1
src/transformers/configuration_mmbt.py
src/transformers/configuration_mmbt.py
+0
-1
src/transformers/configuration_openai.py
src/transformers/configuration_openai.py
+0
-1
src/transformers/configuration_roberta.py
src/transformers/configuration_roberta.py
+0
-1
src/transformers/configuration_t5.py
src/transformers/configuration_t5.py
+0
-1
src/transformers/configuration_transfo_xl.py
src/transformers/configuration_transfo_xl.py
+0
-1
src/transformers/configuration_utils.py
src/transformers/configuration_utils.py
+0
-2
src/transformers/configuration_xlm.py
src/transformers/configuration_xlm.py
+1
-1
src/transformers/configuration_xlm_roberta.py
src/transformers/configuration_xlm_roberta.py
+0
-1
src/transformers/configuration_xlnet.py
src/transformers/configuration_xlnet.py
+1
-1
src/transformers/convert_albert_original_tf_checkpoint_to_pytorch.py
...rmers/convert_albert_original_tf_checkpoint_to_pytorch.py
+0
-1
src/transformers/convert_bert_original_tf_checkpoint_to_pytorch.py
...formers/convert_bert_original_tf_checkpoint_to_pytorch.py
+0
-1
src/transformers/convert_gpt2_original_tf_checkpoint_to_pytorch.py
...formers/convert_gpt2_original_tf_checkpoint_to_pytorch.py
+0
-2
src/transformers/convert_openai_original_tf_checkpoint_to_pytorch.py
...rmers/convert_openai_original_tf_checkpoint_to_pytorch.py
+0
-2
src/transformers/convert_pytorch_checkpoint_to_tf2.py
src/transformers/convert_pytorch_checkpoint_to_tf2.py
+0
-1
No files found.
src/transformers/configuration_auto.py
View file @
ce50305e
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
# limitations under the License.
# limitations under the License.
""" Auto Model class. """
""" Auto Model class. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/configuration_bert.py
View file @
ce50305e
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
""" BERT model configuration """
""" BERT model configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/configuration_camembert.py
View file @
ce50305e
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
""" CamemBERT configuration """
""" CamemBERT configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/configuration_ctrl.py
View file @
ce50305e
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
# limitations under the License.
# limitations under the License.
""" Salesforce CTRL configuration """
""" Salesforce CTRL configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/configuration_distilbert.py
View file @
ce50305e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
""" DistilBERT model configuration """
""" DistilBERT model configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/configuration_gpt2.py
View file @
ce50305e
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
""" OpenAI GPT-2 configuration """
""" OpenAI GPT-2 configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/configuration_mmbt.py
View file @
ce50305e
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
""" MMBT configuration """
""" MMBT configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/configuration_openai.py
View file @
ce50305e
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
""" OpenAI GPT configuration """
""" OpenAI GPT configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/configuration_roberta.py
View file @
ce50305e
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
""" RoBERTa configuration """
""" RoBERTa configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/configuration_t5.py
View file @
ce50305e
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
# limitations under the License.
# limitations under the License.
""" T5 model configuration """
""" T5 model configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/configuration_transfo_xl.py
View file @
ce50305e
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
""" Transformer XL configuration """
""" Transformer XL configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/configuration_utils.py
View file @
ce50305e
...
@@ -15,13 +15,11 @@
...
@@ -15,13 +15,11 @@
# limitations under the License.
# limitations under the License.
""" Configuration base class and utilities."""
""" Configuration base class and utilities."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
copy
import
copy
import
json
import
json
import
logging
import
logging
import
os
import
os
from
io
import
open
from
.file_utils
import
CONFIG_NAME
,
cached_path
,
hf_bucket_url
,
is_remote_url
from
.file_utils
import
CONFIG_NAME
,
cached_path
,
hf_bucket_url
,
is_remote_url
...
...
src/transformers/configuration_xlm.py
View file @
ce50305e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
""" XLM configuration """
""" XLM configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/configuration_xlm_roberta.py
View file @
ce50305e
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
""" XLM-RoBERTa configuration """
""" XLM-RoBERTa configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/configuration_xlnet.py
View file @
ce50305e
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
""" XLNet configuration """
""" XLNet configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/convert_albert_original_tf_checkpoint_to_pytorch.py
View file @
ce50305e
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
# limitations under the License.
# limitations under the License.
"""Convert ALBERT checkpoint."""
"""Convert ALBERT checkpoint."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
argparse
import
logging
import
logging
...
...
src/transformers/convert_bert_original_tf_checkpoint_to_pytorch.py
View file @
ce50305e
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
# limitations under the License.
# limitations under the License.
"""Convert BERT checkpoint."""
"""Convert BERT checkpoint."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
argparse
import
logging
import
logging
...
...
src/transformers/convert_gpt2_original_tf_checkpoint_to_pytorch.py
View file @
ce50305e
...
@@ -14,11 +14,9 @@
...
@@ -14,11 +14,9 @@
# limitations under the License.
# limitations under the License.
"""Convert OpenAI GPT checkpoint."""
"""Convert OpenAI GPT checkpoint."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
argparse
import
logging
import
logging
from
io
import
open
import
torch
import
torch
...
...
src/transformers/convert_openai_original_tf_checkpoint_to_pytorch.py
View file @
ce50305e
...
@@ -14,11 +14,9 @@
...
@@ -14,11 +14,9 @@
# limitations under the License.
# limitations under the License.
"""Convert OpenAI GPT checkpoint."""
"""Convert OpenAI GPT checkpoint."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
argparse
import
logging
import
logging
from
io
import
open
import
torch
import
torch
...
...
src/transformers/convert_pytorch_checkpoint_to_tf2.py
View file @
ce50305e
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
# limitations under the License.
# limitations under the License.
""" Convert pytorch checkpoints to TensorFlow """
""" Convert pytorch checkpoints to TensorFlow """
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
argparse
import
logging
import
logging
...
...
Prev
1
2
3
4
5
6
…
8
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment