Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
e5f2d912
Commit
e5f2d912
authored
Mar 14, 2019
by
thomwolf
Browse files
adding absolute imports to gpt2, openai and transfo-xl
parent
eecaaa73
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
pytorch_pretrained_bert/modeling_gpt2.py
pytorch_pretrained_bert/modeling_gpt2.py
+2
-0
pytorch_pretrained_bert/modeling_openai.py
pytorch_pretrained_bert/modeling_openai.py
+2
-0
pytorch_pretrained_bert/modeling_transfo_xl.py
pytorch_pretrained_bert/modeling_transfo_xl.py
+2
-0
No files found.
pytorch_pretrained_bert/modeling_gpt2.py
View file @
e5f2d912
...
...
@@ -15,6 +15,8 @@
# limitations under the License.
"""PyTorch OpenAI GPT-2 model."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
collections
import
copy
import
json
...
...
pytorch_pretrained_bert/modeling_openai.py
View file @
e5f2d912
...
...
@@ -15,6 +15,8 @@
# limitations under the License.
"""PyTorch OpenAI GPT model."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
collections
import
copy
import
json
...
...
pytorch_pretrained_bert/modeling_transfo_xl.py
View file @
e5f2d912
...
...
@@ -18,6 +18,8 @@
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
os
import
copy
import
json
...
...
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