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
lli
YM-Seminar
Commits
1059735f
Commit
1059735f
authored
Apr 30, 2021
by
lli
Browse files
add training time to a2c
parent
decea86e
Changes
1
Hide whitespace changes
Inline
Side-by-side
train_a2c.py
View file @
1059735f
...
...
@@ -135,6 +135,8 @@ for episode in range(n_episode):
state
=
next_state
print
(
f
"Training time for
{
args
.
n_episode
}
episodes:
{
timer
()
-
start_time
}
"
)
# save the model parameters
torch
.
save
(
policy_net
.
state_dict
(),
os
.
path
.
join
(
OUT_PATH
,
'policy_net{}.pk1'
.
format
(
n_episode
)))
...
...
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