openvino : update convert-whisper-to-openvino.py to support v3 (#1459)

This commit is contained in:
bobqianic 2023-11-09 10:42:39 +00:00 committed by GitHub
parent 0de8582f65
commit 953419c69a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ import shutil
def convert_encoder(hparams, encoder, mname):
encoder.eval()
mel = torch.zeros((1, 80, 3000))
mel = torch.zeros((1, hparams.n_mels, 3000))
onnx_folder=os.path.join(os.path.dirname(__file__),"onnx_encoder")