Skip to content

Commit

Permalink
Update _apply_preprocessing_gradient in loss_gradient
Browse files Browse the repository at this point in the history
Signed-off-by: Beat Buesser <beat.buesser@ie.ibm.com>
  • Loading branch information
Beat Buesser committed May 23, 2022
1 parent 25d96be commit 1c81523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion art/estimators/speech_recognition/pytorch_deep_speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def loss_gradient(self, x: np.ndarray, y: np.ndarray, **kwargs) -> np.ndarray:
results_[:] = list(results)
results = results_

results = self._apply_preprocessing_gradient(x_in, results)
results = self._apply_preprocessing_gradient(x, results)

if x.dtype != object:
results = np.array([i for i in results], dtype=x.dtype) # pylint: disable=R1721
Expand Down

0 comments on commit 1c81523

Please sign in to comment.