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
99 additions
and
16 deletions
+99
-16
tests/test_file_utils.py
tests/test_file_utils.py
+14
-0
tests/test_flax_auto.py
tests/test_flax_auto.py
+14
-0
tests/test_hf_argparser.py
tests/test_hf_argparser.py
+14
-0
tests/test_logging.py
tests/test_logging.py
+14
-0
tests/test_modeling_albert.py
tests/test_modeling_albert.py
+1
-1
tests/test_modeling_auto.py
tests/test_modeling_auto.py
+1
-1
tests/test_modeling_bart.py
tests/test_modeling_bart.py
+1
-1
tests/test_modeling_bert.py
tests/test_modeling_bert.py
+1
-1
tests/test_modeling_bert_generation.py
tests/test_modeling_bert_generation.py
+1
-1
tests/test_modeling_blenderbot.py
tests/test_modeling_blenderbot.py
+2
-3
tests/test_modeling_camembert.py
tests/test_modeling_camembert.py
+1
-1
tests/test_modeling_distilbert.py
tests/test_modeling_distilbert.py
+1
-1
tests/test_modeling_electra.py
tests/test_modeling_electra.py
+1
-1
tests/test_modeling_flaubert.py
tests/test_modeling_flaubert.py
+1
-1
tests/test_modeling_flax_bert.py
tests/test_modeling_flax_bert.py
+14
-0
tests/test_modeling_flax_roberta.py
tests/test_modeling_flax_roberta.py
+14
-0
tests/test_modeling_gpt2.py
tests/test_modeling_gpt2.py
+1
-1
tests/test_modeling_layoutlm.py
tests/test_modeling_layoutlm.py
+1
-1
tests/test_modeling_longformer.py
tests/test_modeling_longformer.py
+1
-1
tests/test_modeling_lxmert.py
tests/test_modeling_lxmert.py
+1
-1
No files found.
tests/test_file_utils.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
requests
...
...
tests/test_flax_auto.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
from
transformers
import
AutoConfig
,
AutoTokenizer
,
BertConfig
,
TensorType
,
is_flax_available
...
...
tests/test_hf_argparser.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
argparse
import
unittest
from
argparse
import
Namespace
...
...
tests/test_logging.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
os
import
unittest
...
...
tests/test_modeling_albert.py
View file @
00aa9dbc
# 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");
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_auto.py
View file @
00aa9dbc
# 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");
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_bart.py
View file @
00aa9dbc
# coding=utf-8
# Copyright 2020 Hugging
f
ace
# Copyright 2020
The
Hugging
F
ace
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.
...
...
tests/test_modeling_bert.py
View file @
00aa9dbc
# 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");
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_bert_generation.py
View file @
00aa9dbc
# 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");
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_blenderbot.py
View file @
00aa9dbc
#!/usr/bin/env python3
# coding=utf-8
# Copyright
(c) Facebook, Inc. and its affiliates
.
# Copyright
2020 The HuggingFace Team. All rights reserved
.
#
#
This source code is licensed under the MIT license found in the
;
#
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
#
...
...
@@ -13,7 +13,6 @@
# 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.
# LICENSE file in the root directory of this source tree.
"""Tests for BlenderBot"""
import
unittest
...
...
tests/test_modeling_camembert.py
View file @
00aa9dbc
# 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");
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_distilbert.py
View file @
00aa9dbc
# 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");
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_electra.py
View file @
00aa9dbc
# 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");
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_flaubert.py
View file @
00aa9dbc
# 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");
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_flax_bert.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
from
numpy
import
ndarray
...
...
tests/test_modeling_flax_roberta.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
from
numpy
import
ndarray
...
...
tests/test_modeling_gpt2.py
View file @
00aa9dbc
# 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");
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_layoutlm.py
View file @
00aa9dbc
# coding=utf-8
# Copyright 2018 The Microsoft Research Asia LayoutLM Team Authors.
# Copyright 2018 The Microsoft Research Asia LayoutLM Team Authors
, The Hugging Face Team
.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_longformer.py
View file @
00aa9dbc
# 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");
# you may not use this file except in compliance with the License.
...
...
tests/test_modeling_lxmert.py
View file @
00aa9dbc
# coding=utf-8
# Copyright 2018 LXMERT Authors.
# Copyright 2018 LXMERT Authors
, The Hugging Face Team
.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
Prev
1
…
8
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