浏览代码

Fix typo in model vars

/tag-0.2.0
Arthur Juliani 7 年前
当前提交
827dca28
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 8
      python/ppo/models.py

8
python/ppo/models.py


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":

正在加载...
取消
保存