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
4665d5f1
Commit
4665d5f1
authored
Jan 22, 2021
by
Shashank Suhas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repeat v1 compat
parent
39bf1e59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
examples/A3C-Gym/train-atari.py
examples/A3C-Gym/train-atari.py
+4
-1
No files found.
examples/A3C-Gym/train-atari.py
View file @
4665d5f1
...
@@ -11,7 +11,7 @@ import numpy as np
...
@@ -11,7 +11,7 @@ import numpy as np
import
os
import
os
import
sys
import
sys
import
uuid
import
uuid
import
tensorflow
as
tf
import
tensorflow
.compat.v1
as
tf
from
six.moves
import
queue
from
six.moves
import
queue
from
concurrent
import
futures
from
concurrent
import
futures
CancelledError
=
futures
.
CancelledError
CancelledError
=
futures
.
CancelledError
...
@@ -27,6 +27,8 @@ from atari_wrapper import FireResetEnv, FrameStack, LimitLength, MapState
...
@@ -27,6 +27,8 @@ from atari_wrapper import FireResetEnv, FrameStack, LimitLength, MapState
from
common
import
Evaluator
,
eval_model_multithread
,
play_n_episodes
from
common
import
Evaluator
,
eval_model_multithread
,
play_n_episodes
from
simulator
import
SimulatorMaster
,
SimulatorProcess
,
TransitionExperience
from
simulator
import
SimulatorMaster
,
SimulatorProcess
,
TransitionExperience
tf
.
disable_eager_execution
()
IMAGE_SIZE
=
(
84
,
84
)
IMAGE_SIZE
=
(
84
,
84
)
FRAME_HISTORY
=
4
FRAME_HISTORY
=
4
GAMMA
=
0.99
GAMMA
=
0.99
...
@@ -169,6 +171,7 @@ class MySimulatorMaster(SimulatorMaster, Callback):
...
@@ -169,6 +171,7 @@ class MySimulatorMaster(SimulatorMaster, Callback):
"""
"""
Launch forward prediction for the new state given by some client.
Launch forward prediction for the new state given by some client.
"""
"""
print
(
state
)
def
cb
(
outputs
):
def
cb
(
outputs
):
try
:
try
:
distrib
,
value
=
outputs
.
result
()
distrib
,
value
=
outputs
.
result
()
...
...
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