浏览代码

remove "discrete nan" check (#4770) (#4775)

/release_11_branch
GitHub 4 年前
当前提交
c2783e70
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 4
      ml-agents/mlagents/trainers/policy/policy.py

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


has_nan = np.isnan(d)
if has_nan:
raise RuntimeError("Continuous NaN action detected.")
d = np.sum(action.discrete)
has_nan = np.isnan(d)
if has_nan:
raise RuntimeError("Discrete NaN action detected.")
@abstractmethod
def update_normalization(self, vector_obs: np.ndarray) -> None:

正在加载...
取消
保存