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
e77721e4
Commit
e77721e4
authored
Feb 07, 2019
by
thomwolf
Browse files
renamed examples
parent
009b5813
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
examples/train_openai_gpt.py
examples/train_openai_gpt.py
+0
-0
examples/train_transfo_xl.py
examples/train_transfo_xl.py
+1
-1
No files found.
examples/openai_gpt
_train
.py
→
examples/
train_
openai_gpt.py
View file @
e77721e4
File moved
examples/transfo_xl
_train
.py
→
examples/
train_
transfo_xl.py
View file @
e77721e4
...
...
@@ -437,7 +437,7 @@ def evaluate(eval_iter):
if
args
.
max_eval_steps
>
0
and
i
>=
args
.
max_eval_steps
:
break
ret
=
model
(
data
,
target
,
*
mems
)
loss
,
mems
=
ret
[
0
],
ret
[
1
:]
loss
,
mems
=
ret
loss
=
loss
.
mean
()
total_loss
+=
seq_len
*
loss
.
float
().
item
()
total_len
+=
seq_len
...
...
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