浏览代码

update make_empty docstring

/develop/action-spec-gym
Andrew Cohen 4 年前
当前提交
da5b8420
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents/mlagents/trainers/policy/policy.py

2
ml-agents/mlagents/trainers/policy/policy.py


"""
Creates empty previous action for use with RNNs and discrete control
:param num_agents: Number of agents.
:return: Dict of action type to np.ndarray
:return: Numpy array of zeros.
"""
return np.zeros(
(num_agents, self.behavior_spec.action_spec.discrete_size), dtype=np.int32

正在加载...
取消
保存