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
5 additions
and
20 deletions
+5
-20
src/transformers/file_utils.py
src/transformers/file_utils.py
+1
-1
src/transformers/hf_api.py
src/transformers/hf_api.py
+1
-1
src/transformers/modelcard.py
src/transformers/modelcard.py
+0
-1
src/transformers/modeling_auto.py
src/transformers/modeling_auto.py
+0
-1
src/transformers/modeling_bert.py
src/transformers/modeling_bert.py
+0
-1
src/transformers/modeling_camembert.py
src/transformers/modeling_camembert.py
+0
-1
src/transformers/modeling_ctrl.py
src/transformers/modeling_ctrl.py
+0
-1
src/transformers/modeling_distilbert.py
src/transformers/modeling_distilbert.py
+1
-1
src/transformers/modeling_encoder_decoder.py
src/transformers/modeling_encoder_decoder.py
+0
-1
src/transformers/modeling_gpt2.py
src/transformers/modeling_gpt2.py
+0
-1
src/transformers/modeling_mmbt.py
src/transformers/modeling_mmbt.py
+0
-1
src/transformers/modeling_openai.py
src/transformers/modeling_openai.py
+0
-1
src/transformers/modeling_roberta.py
src/transformers/modeling_roberta.py
+0
-1
src/transformers/modeling_t5.py
src/transformers/modeling_t5.py
+0
-1
src/transformers/modeling_tf_albert.py
src/transformers/modeling_tf_albert.py
+1
-1
src/transformers/modeling_tf_auto.py
src/transformers/modeling_tf_auto.py
+0
-1
src/transformers/modeling_tf_bert.py
src/transformers/modeling_tf_bert.py
+0
-1
src/transformers/modeling_tf_ctrl.py
src/transformers/modeling_tf_ctrl.py
+0
-1
src/transformers/modeling_tf_distilbert.py
src/transformers/modeling_tf_distilbert.py
+1
-1
src/transformers/modeling_tf_gpt2.py
src/transformers/modeling_tf_gpt2.py
+0
-1
No files found.
src/transformers/file_utils.py
View file @
c824d15a
...
...
@@ -3,7 +3,7 @@ Utilities for working with the local dataset cache.
This file is adapted from the AllenNLP library at https://github.com/allenai/allennlp
Copyright by the AllenNLP authors.
"""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
fnmatch
import
json
...
...
src/transformers/hf_api.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
io
import
os
...
...
src/transformers/modelcard.py
View file @
c824d15a
...
...
@@ -14,7 +14,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/modeling_auto.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
""" Auto Model class. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/modeling_bert.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
"""PyTorch BERT model. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
math
...
...
src/transformers/modeling_camembert.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
"""PyTorch CamemBERT model. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/modeling_ctrl.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
""" PyTorch CTRL model."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/modeling_distilbert.py
View file @
c824d15a
...
...
@@ -16,7 +16,7 @@
adapted in part from Facebook, Inc XLM model (https://github.com/facebookresearch/XLM)
and in part from HuggingFace PyTorch version of Google AI Bert model (https://github.com/google-research/bert)
"""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
copy
import
logging
...
...
src/transformers/modeling_encoder_decoder.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
""" Classes to support Encoder-Decoder architectures """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
os
...
...
src/transformers/modeling_gpt2.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
"""PyTorch OpenAI GPT-2 model."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
math
...
...
src/transformers/modeling_mmbt.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
"""PyTorch MMBT model. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/modeling_openai.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
"""PyTorch OpenAI GPT model."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
json
import
logging
...
...
src/transformers/modeling_roberta.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
"""PyTorch RoBERTa model. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/modeling_t5.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
""" PyTorch T5 model. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
copy
import
itertools
...
...
src/transformers/modeling_tf_albert.py
View file @
c824d15a
...
...
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
""" TF 2.0 ALBERT model. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
sys
...
...
src/transformers/modeling_tf_auto.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
""" Auto Model class. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/modeling_tf_bert.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
""" TF 2.0 BERT model. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
sys
...
...
src/transformers/modeling_tf_ctrl.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
""" TF 2.0 CTRL model."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/modeling_tf_distilbert.py
View file @
c824d15a
...
...
@@ -14,7 +14,7 @@
# limitations under the License.
""" TF 2.0 DistilBERT model
"""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
math
...
...
src/transformers/modeling_tf_gpt2.py
View file @
c824d15a
...
...
@@ -15,7 +15,6 @@
# limitations under the License.
""" TF 2.0 OpenAI GPT-2 model. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
Prev
1
2
3
4
5
6
7
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