mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-12-05 02:58:13 +08:00
work with tuple shape (#393)
This commit is contained in:
@@ -50,7 +50,7 @@ def detect_language(
|
||||
mel = mel[None]
|
||||
|
||||
# skip encoder forward pass if already-encoded audio features were given
|
||||
if mel.shape[-2:] != [model.dims.n_audio_ctx, model.dims.n_audio_state]:
|
||||
if mel.shape[-2:] != (model.dims.n_audio_ctx, model.dims.n_audio_state):
|
||||
mel = model.encoder(mel)
|
||||
|
||||
# forward pass using a single token, startoftranscript
|
||||
|
||||
Reference in New Issue
Block a user