浏览代码

[skip ci] Update ml-agents-envs/mlagents_envs/gym_wrapper.py

Co-Authored-By: Chris Elion <chris.elion@unity3d.com>
/develop/gym-wrapper
GitHub 5 年前
当前提交
4e825ffd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ml-agents-envs/mlagents_envs/gym_wrapper.py

4
ml-agents-envs/mlagents_envs/gym_wrapper.py


if self._first_message:
self.reset()
return
obs, rew, don, info = self._gym_env.step(self._g_action)
if not don:
obs, rew, done, info = self._gym_env.step(self._g_action)
if not done:
self._current_steps = (
DecisionSteps(
obs=[np.expand_dims(obs / self.obs_ratio, axis=0)],

正在加载...
取消
保存