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
c824d15a
Commit
c824d15a
authored
Dec 22, 2019
by
Aymeric Augustin
Browse files
Remove __future__ imports.
parent
b6ea0f43
Changes
147
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
2 additions
and
20 deletions
+2
-20
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
-1
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
-1
src/transformers/convert_openai_original_tf_checkpoint_to_pytorch.py
...rmers/convert_openai_original_tf_checkpoint_to_pytorch.py
+0
-1
src/transformers/convert_pytorch_checkpoint_to_tf2.py
src/transformers/convert_pytorch_checkpoint_to_tf2.py
+0
-1
src/transformers/convert_roberta_original_pytorch_checkpoint_to_pytorch.py
...convert_roberta_original_pytorch_checkpoint_to_pytorch.py
+0
-1
src/transformers/convert_t5_original_tf_checkpoint_to_pytorch.py
...nsformers/convert_t5_original_tf_checkpoint_to_pytorch.py
+0
-1
src/transformers/convert_transfo_xl_original_tf_checkpoint_to_pytorch.py
...s/convert_transfo_xl_original_tf_checkpoint_to_pytorch.py
+0
-1
src/transformers/convert_xlm_original_pytorch_checkpoint_to_pytorch.py
...ers/convert_xlm_original_pytorch_checkpoint_to_pytorch.py
+0
-1
src/transformers/convert_xlnet_original_tf_checkpoint_to_pytorch.py
...ormers/convert_xlnet_original_tf_checkpoint_to_pytorch.py
+0
-1
src/transformers/data/processors/xnli.py
src/transformers/data/processors/xnli.py
+0
-1
No files found.
src/transformers/configuration_mmbt.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
""" MMBT configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/configuration_openai.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
""" OpenAI GPT configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/configuration_roberta.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
""" RoBERTa configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/configuration_t5.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
""" T5 model configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/configuration_transfo_xl.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
""" Transformer XL configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/configuration_utils.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
""" Configuration base class and utilities."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
copy
import
json
...
...
src/transformers/configuration_xlm.py
View file @
c824d15a
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
""" XLM configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/configuration_xlm_roberta.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
""" XLM-RoBERTa configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/configuration_xlnet.py
View file @
c824d15a
...
...
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
""" XLNet configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/convert_albert_original_tf_checkpoint_to_pytorch.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
"""Convert ALBERT checkpoint."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
logging
...
...
src/transformers/convert_bert_original_tf_checkpoint_to_pytorch.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
"""Convert BERT checkpoint."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
logging
...
...
src/transformers/convert_gpt2_original_tf_checkpoint_to_pytorch.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
"""Convert OpenAI GPT checkpoint."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
logging
...
...
src/transformers/convert_openai_original_tf_checkpoint_to_pytorch.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
"""Convert OpenAI GPT checkpoint."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
logging
...
...
src/transformers/convert_pytorch_checkpoint_to_tf2.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
""" Convert pytorch checkpoints to TensorFlow """
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
logging
...
...
src/transformers/convert_roberta_original_pytorch_checkpoint_to_pytorch.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
"""Convert RoBERTa checkpoint."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
logging
...
...
src/transformers/convert_t5_original_tf_checkpoint_to_pytorch.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
"""Convert T5 checkpoint."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
logging
...
...
src/transformers/convert_transfo_xl_original_tf_checkpoint_to_pytorch.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
"""Convert Transformer XL checkpoint and datasets."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
logging
...
...
src/transformers/convert_xlm_original_pytorch_checkpoint_to_pytorch.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
"""Convert OpenAI GPT checkpoint."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
json
...
...
src/transformers/convert_xlnet_original_tf_checkpoint_to_pytorch.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
"""Convert BERT checkpoint."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
logging
...
...
src/transformers/data/processors/xnli.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
""" XNLI utils (dataset loading and evaluation) """
from
__future__
import
absolute_import
,
division
,
print_function
import
logging
import
os
...
...
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