这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tianshou/env/pettingzoo_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ def __init__(self, env: BaseWrapper):
self.env.observation_space(agent) == self.observation_space for agent in self.agents
), (
"Observation spaces for all agents must be identical. Perhaps "
"SuperSuit's pad_observations wrapper can help (useage: "
"`supersuit.aec_wrappers.pad_observations(env)`"
"SuperSuit's pad_observations wrapper can help (usage: "
"`supersuit.pad_observations_v0(env)`"
)

assert all(self.env.action_space(agent) == self.action_space for agent in self.agents), (
"Action spaces for all agents must be identical. Perhaps "
"SuperSuit's pad_action_space wrapper can help (useage: "
"`supersuit.aec_wrappers.pad_action_space(env)`"
"SuperSuit's pad_action_space wrapper can help (usage: "
"`supersuit.pad_action_space_v0(env)`"
)

self.reset()
Expand Down
Loading