浏览代码

Formatting

/MLA-1734-demo-provider
vincentpierre 4 年前
当前提交
46580ff9
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      com.unity.ml-agents/Runtime/Sensors/ObservationWriter.cs
  2. 2
      ml-agents-envs/mlagents_envs/rpc_utils.py

2
com.unity.ml-agents/Runtime/Sensors/ObservationWriter.cs


}
else if (shape.Length == 2)
{
m_TensorShape = new TensorShape(new int[]{m_Batch, 1, shape[0], shape[1]});
m_TensorShape = new TensorShape(new int[] { m_Batch, 1, shape[0], shape[1] });
}
else
{

2
ml-agents-envs/mlagents_envs/rpc_utils.py


for agent_obs in agent_info_list
],
dtype=np.float32,
).reshape((len(agent_info_list), ) + shape)
).reshape((len(agent_info_list),) + shape)
_raise_on_nan_and_inf(np_obs, "observations")
return np_obs

正在加载...
取消
保存