Add action space to model (#4210)

This commit is contained in:
Stefan Pantic
2019-03-09 19:23:12 -08:00
committed by Eric Liang
parent 5adb4a6941
commit 36cbde651a
14 changed files with 61 additions and 42 deletions
+2
View File
@@ -48,6 +48,7 @@ class Model(object):
def __init__(self,
input_dict,
obs_space,
action_space,
num_outputs,
options,
state_in=None,
@@ -59,6 +60,7 @@ class Model(object):
self.state_in = state_in or []
self.state_out = []
self.obs_space = obs_space
self.action_space = action_space
self.num_outputs = num_outputs
self.options = options
self.scope = tf.get_variable_scope()