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
7 additions
and
20 deletions
+7
-20
src/transformers/modeling_tf_openai.py
src/transformers/modeling_tf_openai.py
+0
-1
src/transformers/modeling_tf_pytorch_utils.py
src/transformers/modeling_tf_pytorch_utils.py
+0
-1
src/transformers/modeling_tf_roberta.py
src/transformers/modeling_tf_roberta.py
+0
-1
src/transformers/modeling_tf_t5.py
src/transformers/modeling_tf_t5.py
+0
-1
src/transformers/modeling_tf_transfo_xl.py
src/transformers/modeling_tf_transfo_xl.py
+0
-1
src/transformers/modeling_tf_utils.py
src/transformers/modeling_tf_utils.py
+0
-1
src/transformers/modeling_tf_xlm.py
src/transformers/modeling_tf_xlm.py
+1
-1
src/transformers/modeling_tf_xlnet.py
src/transformers/modeling_tf_xlnet.py
+1
-1
src/transformers/modeling_transfo_xl.py
src/transformers/modeling_transfo_xl.py
+0
-1
src/transformers/modeling_utils.py
src/transformers/modeling_utils.py
+0
-1
src/transformers/modeling_xlm.py
src/transformers/modeling_xlm.py
+1
-1
src/transformers/modeling_xlm_roberta.py
src/transformers/modeling_xlm_roberta.py
+0
-1
src/transformers/modeling_xlnet.py
src/transformers/modeling_xlnet.py
+1
-1
src/transformers/optimization_tf.py
src/transformers/optimization_tf.py
+0
-1
src/transformers/pipelines.py
src/transformers/pipelines.py
+1
-1
src/transformers/tokenization_albert.py
src/transformers/tokenization_albert.py
+1
-1
src/transformers/tokenization_auto.py
src/transformers/tokenization_auto.py
+0
-1
src/transformers/tokenization_bert.py
src/transformers/tokenization_bert.py
+0
-1
src/transformers/tokenization_bert_japanese.py
src/transformers/tokenization_bert_japanese.py
+0
-1
src/transformers/tokenization_camembert.py
src/transformers/tokenization_camembert.py
+1
-1
No files found.
src/transformers/modeling_tf_openai.py
View file @
c824d15a
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
""" TF 2.0 OpenAI GPT model."""
""" TF 2.0 OpenAI GPT model."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/modeling_tf_pytorch_utils.py
View file @
c824d15a
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
""" PyTorch - TF 2.0 general utilities."""
""" PyTorch - TF 2.0 general utilities."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
import
os
import
os
...
...
src/transformers/modeling_tf_roberta.py
View file @
c824d15a
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
""" TF 2.0 RoBERTa model. """
""" TF 2.0 RoBERTa model. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/modeling_tf_t5.py
View file @
c824d15a
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
""" TF 2.0 T5 model. """
""" TF 2.0 T5 model. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
copy
import
copy
import
itertools
import
itertools
...
...
src/transformers/modeling_tf_transfo_xl.py
View file @
c824d15a
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
""" TF 2.0 Transformer XL model.
""" TF 2.0 Transformer XL model.
"""
"""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/modeling_tf_utils.py
View file @
c824d15a
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
"""TF general model utils."""
"""TF general model utils."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
import
os
import
os
...
...
src/transformers/modeling_tf_xlm.py
View file @
c824d15a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# limitations under the License.
# limitations under the License.
""" TF 2.0 XLM model.
""" TF 2.0 XLM model.
"""
"""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
itertools
import
itertools
import
logging
import
logging
...
...
src/transformers/modeling_tf_xlnet.py
View file @
c824d15a
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
# limitations under the License.
# limitations under the License.
""" TF 2.0 XLNet model.
""" TF 2.0 XLNet model.
"""
"""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
import
sys
import
sys
...
...
src/transformers/modeling_transfo_xl.py
View file @
c824d15a
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
In particular https://github.com/kimiyoung/transformer-xl/blob/master/pytorch/mem_transformer.py
In particular https://github.com/kimiyoung/transformer-xl/blob/master/pytorch/mem_transformer.py
"""
"""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/modeling_utils.py
View file @
c824d15a
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
"""PyTorch BERT model."""
"""PyTorch BERT model."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
import
os
import
os
...
...
src/transformers/modeling_xlm.py
View file @
c824d15a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# limitations under the License.
# limitations under the License.
""" PyTorch XLM model.
""" PyTorch XLM model.
"""
"""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
itertools
import
itertools
import
logging
import
logging
...
...
src/transformers/modeling_xlm_roberta.py
View file @
c824d15a
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
# limitations under the License.
# limitations under the License.
"""PyTorch XLM-RoBERTa model. """
"""PyTorch XLM-RoBERTa model. """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
...
...
src/transformers/modeling_xlnet.py
View file @
c824d15a
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
# limitations under the License.
# limitations under the License.
""" PyTorch XLNet model.
""" PyTorch XLNet model.
"""
"""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
import
math
import
math
...
...
src/transformers/optimization_tf.py
View file @
c824d15a
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
# ==============================================================================
# ==============================================================================
"""Functions and classes related to optimization (weight updates)."""
"""Functions and classes related to optimization (weight updates)."""
from
__future__
import
absolute_import
,
division
,
print_function
import
re
import
re
...
...
src/transformers/pipelines.py
View file @
c824d15a
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# 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.
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
csv
import
csv
import
json
import
json
...
...
src/transformers/tokenization_albert.py
View file @
c824d15a
...
@@ -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.
""" Tokenization classes for ALBERT model."""
""" Tokenization classes for ALBERT model."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
import
os
import
os
...
...
src/transformers/tokenization_auto.py
View file @
c824d15a
...
@@ -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/tokenization_bert.py
View file @
c824d15a
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
# limitations under the License.
# limitations under the License.
"""Tokenization classes."""
"""Tokenization classes."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
collections
import
collections
import
logging
import
logging
...
...
src/transformers/tokenization_bert_japanese.py
View file @
c824d15a
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
# limitations under the License.
# limitations under the License.
"""Tokenization classes."""
"""Tokenization classes."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
collections
import
collections
import
logging
import
logging
...
...
src/transformers/tokenization_camembert.py
View file @
c824d15a
...
@@ -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
""" Tokenization classes for Camembert model."""
""" Tokenization classes for Camembert model."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
logging
import
os
import
os
...
...
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