We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afdeba1 commit 8b9e953Copy full SHA for 8b9e953
ml-agents/mlagents/trainers/policy/policy.py
@@ -140,10 +140,6 @@ def check_nan_action(action: Optional[ActionTuple]) -> None:
140
has_nan = np.isnan(d)
141
if has_nan:
142
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.")
147
148
@abstractmethod
149
def update_normalization(self, vector_obs: np.ndarray) -> None:
0 commit comments