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
Anthony Larcher
sidekit
Commits
31be2e01
Commit
31be2e01
authored
Apr 08, 2021
by
Anthony Larcher
Browse files
monitor display
parent
33750df6
Changes
1
Show whitespace changes
Inline
Side-by-side
nnet/xvector.py
View file @
31be2e01
...
...
@@ -1935,6 +1935,7 @@ def new_train_epoch(model,
scaler
.
update
()
else
:
loss
.
backward
()
print
(
"optimizer.step"
)
optimizer
.
step
()
running_loss
+=
loss
.
item
()
accuracy
+=
(
torch
.
argmax
(
output
.
data
,
1
)
==
target
).
sum
()
...
...
@@ -1964,6 +1965,7 @@ def new_train_epoch(model,
pickle
.
dump
(
data
.
cpu
(),
fh
)
import
sys
sys
.
exit
()
running_loss
=
0.0
scheduler
.
step
()
return
model
...
...
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