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
00aa9dbc
Unverified
Commit
00aa9dbc
authored
Dec 07, 2020
by
Sylvain Gugger
Committed by
GitHub
Dec 07, 2020
Browse files
Copyright (#8970)
* Add copyright everywhere missing * Style
parent
c108d0b5
Changes
318
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
60 additions
and
16 deletions
+60
-16
tests/test_modeling_mbart.py
tests/test_modeling_mbart.py
+14
-0
tests/test_modeling_mobilebert.py
tests/test_modeling_mobilebert.py
+1
-1
tests/test_modeling_mt5.py
tests/test_modeling_mt5.py
+14
-0
tests/test_modeling_openai.py
tests/test_modeling_openai.py
+1
-1
tests/test_modeling_pegasus.py
tests/test_modeling_pegasus.py
+14
-0
tests/test_modeling_roberta.py
tests/test_modeling_roberta.py
+1
-1
tests/test_modeling_tf_albert.py
tests/test_modeling_tf_albert.py
+1
-1
tests/test_modeling_tf_auto.py
tests/test_modeling_tf_auto.py
+1
-1
tests/test_modeling_tf_bert.py
tests/test_modeling_tf_bert.py
+1
-1
tests/test_modeling_tf_blenderbot.py
tests/test_modeling_tf_blenderbot.py
+1
-0
tests/test_modeling_tf_camembert.py
tests/test_modeling_tf_camembert.py
+1
-1
tests/test_modeling_tf_ctrl.py
tests/test_modeling_tf_ctrl.py
+1
-1
tests/test_modeling_tf_distilbert.py
tests/test_modeling_tf_distilbert.py
+1
-1
tests/test_modeling_tf_dpr.py
tests/test_modeling_tf_dpr.py
+1
-0
tests/test_modeling_tf_electra.py
tests/test_modeling_tf_electra.py
+1
-1
tests/test_modeling_tf_gpt2.py
tests/test_modeling_tf_gpt2.py
+1
-2
tests/test_modeling_tf_longformer.py
tests/test_modeling_tf_longformer.py
+1
-1
tests/test_modeling_tf_lxmert.py
tests/test_modeling_tf_lxmert.py
+2
-1
tests/test_modeling_tf_mobilebert.py
tests/test_modeling_tf_mobilebert.py
+1
-1
tests/test_modeling_tf_mt5.py
tests/test_modeling_tf_mt5.py
+1
-1
No files found.
tests/test_modeling_mbart.py
View file @
00aa9dbc
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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.
import
unittest
import
unittest
from
transformers
import
is_torch_available
from
transformers
import
is_torch_available
...
...
tests/test_modeling_mobilebert.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_mt5.py
View file @
00aa9dbc
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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.
import
unittest
import
unittest
from
transformers
import
is_torch_available
from
transformers
import
is_torch_available
...
...
tests/test_modeling_openai.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_pegasus.py
View file @
00aa9dbc
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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.
import
unittest
import
unittest
from
transformers
import
AutoConfig
,
AutoTokenizer
,
is_torch_available
from
transformers
import
AutoConfig
,
AutoTokenizer
,
is_torch_available
...
...
tests/test_modeling_roberta.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_tf_albert.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_tf_auto.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_tf_bert.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_tf_blenderbot.py
View file @
00aa9dbc
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +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.
import
unittest
import
unittest
from
tests.test_configuration_common
import
ConfigTester
from
tests.test_configuration_common
import
ConfigTester
...
...
tests/test_modeling_tf_camembert.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_tf_ctrl.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_tf_distilbert.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_tf_dpr.py
View file @
00aa9dbc
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +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.
import
tempfile
import
tempfile
import
unittest
import
unittest
...
...
tests/test_modeling_tf_electra.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_tf_gpt2.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
# 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.
import
unittest
import
unittest
from
transformers
import
GPT2Config
,
is_tf_available
from
transformers
import
GPT2Config
,
is_tf_available
...
...
tests/test_modeling_tf_longformer.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_tf_lxmert.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18 XXX Authors
.
# Copyright 20
20 The HuggingFace Team. All rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +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.
import
tempfile
import
tempfile
import
unittest
import
unittest
...
...
tests/test_modeling_tf_mobilebert.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_tf_mt5.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 20
18
The
Google AI Languag
e Team A
uthors
.
# Copyright 20
20
The
HuggingFac
e Team
.
A
ll rights reserved
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
Prev
1
…
9
10
11
12
13
14
15
16
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