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
3a431489
You need to sign in or sign up before continuing.
Commit
3a431489
authored
Jul 29, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
breakout img
parent
e1c0102e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
15 deletions
+17
-15
examples/Atari2600/README.md
examples/Atari2600/README.md
+2
-0
examples/Atari2600/breakout.jpg
examples/Atari2600/breakout.jpg
+0
-0
tensorpack/predict/base.py
tensorpack/predict/base.py
+14
-14
tensorpack/train/base.py
tensorpack/train/base.py
+1
-1
No files found.
examples/Atari2600/README.md
View file @
3a431489

Reproduce the following reinforcement learning methods:
Reproduce the following reinforcement learning methods:
+
Nature-DQN in:
+
Nature-DQN in:
...
...
examples/Atari2600/breakout.jpg
0 → 100644
View file @
3a431489
5.83 KB
tensorpack/predict/base.py
View file @
3a431489
...
@@ -87,17 +87,17 @@ class OfflinePredictor(OnlinePredictor):
...
@@ -87,17 +87,17 @@ class OfflinePredictor(OnlinePredictor):
sess
,
input_vars
,
output_vars
,
config
.
return_input
)
sess
,
input_vars
,
output_vars
,
config
.
return_input
)
class
AsyncOnlinePredictor
(
PredictorBase
):
#
class AsyncOnlinePredictor(PredictorBase):
def
__init__
(
self
,
sess
,
enqueue_op
,
output_vars
,
return_input
=
False
):
#
def __init__(self, sess, enqueue_op, output_vars, return_input=False):
"""
#
"""
:param enqueue_op: an op to feed inputs with.
#
:param enqueue_op: an op to feed inputs with.
:param output_vars: a list of directly-runnable (no extra feeding requirements)
#
:param output_vars: a list of directly-runnable (no extra feeding requirements)
vars producing the outputs.
#
vars producing the outputs.
"""
#
"""
self
.
session
=
sess
#
self.session = sess
self
.
enqop
=
enqueue_op
#
self.enqop = enqueue_op
self
.
output_vars
=
output_vars
#
self.output_vars = output_vars
self
.
return_input
=
return_input
#
self.return_input = return_input
def
put_task
(
self
,
dp
,
callback
):
#
def put_task(self, dp, callback):
pass
#
pass
tensorpack/train/base.py
View file @
3a431489
...
@@ -107,7 +107,7 @@ class Trainer(object):
...
@@ -107,7 +107,7 @@ class Trainer(object):
get_global_step_var
()
# ensure there is such var, before finalizing the graph
get_global_step_var
()
# ensure there is such var, before finalizing the graph
logger
.
info
(
"Setup callbacks ..."
)
logger
.
info
(
"Setup callbacks ..."
)
callbacks
=
self
.
config
.
callbacks
callbacks
=
self
.
config
.
callbacks
callbacks
.
setup_graph
(
self
)
callbacks
.
setup_graph
(
self
)
# TODO use weakref instead?
logger
.
info
(
"Initializing graph variables ..."
)
logger
.
info
(
"Initializing graph variables ..."
)
self
.
sess
.
run
(
tf
.
initialize_all_variables
())
self
.
sess
.
run
(
tf
.
initialize_all_variables
())
self
.
config
.
session_init
.
init
(
self
.
sess
)
self
.
config
.
session_init
.
init
(
self
.
sess
)
...
...
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