Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
475d0d28
Commit
475d0d28
authored
Jan 29, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix gymenv API change again
parent
879995d9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
tensorpack/RL/gymenv.py
tensorpack/RL/gymenv.py
+1
-2
tensorpack/callbacks/concurrency.py
tensorpack/callbacks/concurrency.py
+2
-4
tensorpack/train/input_data.py
tensorpack/train/input_data.py
+0
-1
No files found.
tensorpack/RL/gymenv.py
View file @
475d0d28
...
...
@@ -48,8 +48,7 @@ class GymEnv(RLEnvironment):
self
.
_ob
=
self
.
gymenv
.
reset
()
def
finish_episode
(
self
):
if
self
.
use_dir
is
not
None
:
self
.
gymenv
.
monitor
.
flush
()
self
.
gymenv
.
close
()
self
.
stats
[
'score'
]
.
append
(
self
.
rwd_counter
.
sum
)
def
current_state
(
self
):
...
...
tensorpack/callbacks/concurrency.py
View file @
475d0d28
...
...
@@ -42,11 +42,9 @@ class StartProcOrThread(Callback):
return
for
k
in
self
.
_procs_threads
:
if
isinstance
(
k
,
mp
.
Process
):
logger
.
info
(
"Stopping {} ..."
.
format
(
k
.
name
))
k
.
terminate
()
k
.
join
()
elif
isinstance
(
k
,
StoppableThread
):
logger
.
info
(
"Stopping {} ..."
.
format
(
k
.
name
))
k
.
stop
()
else
:
logger
.
warn
(
"[StartProcOrThread] {} "
"is neither a Process nor a StoppableThread, won't stop it."
.
format
(
k
.
name
))
tensorpack/train/input_data.py
View file @
475d0d28
...
...
@@ -71,7 +71,6 @@ class FeedfreeInput(InputData):
class
EnqueueThread
(
threading
.
Thread
):
def
__init__
(
self
,
trainer
,
queue
,
ds
,
input_placehdrs
):
super
(
EnqueueThread
,
self
)
.
__init__
()
self
.
name
=
'EnqueueThread'
...
...
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