Skip to content

Commit cef22fc

Browse files
authored
Update art/estimators/speech_recognition/pytorch_deep_speech.py
1 parent c3a8549 commit cef22fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

art/estimators/speech_recognition/pytorch_deep_speech.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def fit(self, x: np.ndarray, y: np.ndarray, batch_size: int = 128, nb_epochs: in
440440
self._model.train()
441441

442442
if self._optimizer is None:
443-
raise ValueError("An optimizer is needed to train the model, but none for provided.")
443+
raise ValueError("An optimizer is required to train the model, but none was provided.")
444444

445445
# Apply preprocessing
446446
x_preprocessed, y_preprocessed = self._apply_preprocessing(x, y, fit=True)

0 commit comments

Comments
 (0)