浏览代码

remove uneccesary type from set_actions

/develop/action-spec-gym
Andrew Cohen 4 年前
当前提交
f5fb82a9
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 7
      ml-agents-envs/mlagents_envs/base_env.py

7
ml-agents-envs/mlagents_envs/base_env.py


NamedTuple,
Tuple,
Optional,
Union,
Dict,
Iterator,
Any,

"""
@abstractmethod
def set_actions(
self, behavior_name: BehaviorName, action: Union[np.ndarray]
) -> None:
def set_actions(self, behavior_name: BehaviorName, action: np.ndarray) -> None:
"""
Sets the action for all of the agents in the simulation for the next
step. The Actions must be in the same order as the order received in

@abstractmethod
def set_action_for_agent(
self, behavior_name: BehaviorName, agent_id: AgentId, action: Union[np.ndarray]
self, behavior_name: BehaviorName, agent_id: AgentId, action: np.ndarray
) -> None:
"""
Sets the action for one of the agents in the simulation for the next

正在加载...
取消
保存