Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gaëtan Caillaut
minibert-oscar
Commits
933846d3
Commit
933846d3
authored
Jan 29, 2021
by
Gaëtan Caillaut
Browse files
forgot == 0
parent
5e3bb780
Changes
1
Hide whitespace changes
Inline
Side-by-side
train.py
View file @
933846d3
...
...
@@ -140,7 +140,7 @@ if __name__ == "__main__":
batch_time
=
t1_batch
-
t0_batch
batch_cumulated_time
+=
batch_time
if
batch_id
%
args
.
progress
:
if
batch_id
%
args
.
progress
==
0
:
print
(
f
"BATCH
{
batch_id
:
05
}
/
{
epoch
:
04
}
- LOSS
{
loss
.
item
()
}
- TIME
{
batch_cumulated_time
}
"
,
flush
=
True
)
batch_cumulated_time
=
timedelta
()
...
...
Write
Preview
Supports
Markdown
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