Skip to content

Commit de9b9b6

Browse files
committed
Fix wrong preprocessor input type on windows
1 parent 40d5649 commit de9b9b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/onnx_asr/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def read_wav_files(waveforms: list[npt.NDArray[np.float32] | str]) -> list[npt.N
6262

6363
def pad_list(arrays: list[npt.NDArray[np.float32]], axis: int = 0) -> tuple[npt.NDArray[np.float32], npt.NDArray[np.int64]]:
6464
"""Pad list of Numpy arrays to common length."""
65-
lens = np.array([array.shape[axis] for array in arrays])
65+
lens = np.array([array.shape[axis] for array in arrays], dtype=np.int64)
6666
max_len = lens.max()
6767

6868
def pads(array: npt.NDArray[np.float32]) -> list[tuple[int, int]]:

0 commit comments

Comments
 (0)