|
|
|
|
|
|
|
|
|
|
hidden_state, hidden_visual, hidden_policy, hidden_value = None, None, None, None |
|
|
|
if brain.number_observations > 0: |
|
|
|
h_size, w_size = brain.camera_resolutions[0]['height'], brain.camera_resolutions[0]['width'] |
|
|
|
height_size, width_size = brain.camera_resolutions[0]['height'], brain.camera_resolutions[0]['width'] |
|
|
|
hidden_visual = self.create_visual_encoder(h_size, w_size, bw, h_size, 2, tf.nn.tanh) |
|
|
|
hidden_visual = self.create_visual_encoder(height_size, width_size, bw, h_size, 2, tf.nn.tanh) |
|
|
|
if brain.state_space_size > 0: |
|
|
|
s_size = brain.state_space_size |
|
|
|
if brain.state_space_type == "continuous": |
|
|
|
|
|
|
|
|
|
|
hidden_state, hidden_visual, hidden = None, None, None |
|
|
|
if brain.number_observations > 0: |
|
|
|
h_size, w_size = brain.camera_resolutions[0]['height'], brain.camera_resolutions[0]['width'] |
|
|
|
height_size, width_size = brain.camera_resolutions[0]['height'], brain.camera_resolutions[0]['width'] |
|
|
|
hidden_visual = self.create_visual_encoder(h_size, w_size, bw, h_size, 1, tf.nn.elu)[0] |
|
|
|
hidden_visual = self.create_visual_encoder(height_size, width_size, bw, h_size, 1, tf.nn.elu)[0] |
|
|
|
if brain.state_space_size > 0: |
|
|
|
s_size = brain.state_space_size |
|
|
|
if brain.state_space_type == "continuous": |
|
|
|