Skip to content

Commit 8b9e953

Browse files
author
Chris Elion
authored
remove "discrete nan" check (#4770) (#4775)
1 parent afdeba1 commit 8b9e953

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,6 @@ def check_nan_action(action: Optional[ActionTuple]) -> None:
140140
has_nan = np.isnan(d)
141141
if has_nan:
142142
raise RuntimeError("Continuous NaN action detected.")
143-
d = np.sum(action.discrete)
144-
has_nan = np.isnan(d)
145-
if has_nan:
146-
raise RuntimeError("Discrete NaN action detected.")
147143

148144
@abstractmethod
149145
def update_normalization(self, vector_obs: np.ndarray) -> None:

0 commit comments

Comments
 (0)