Skip to content

Commit 490c1b6

Browse files
committed
Test bad inputs
1 parent 4bbde84 commit 490c1b6

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
@@ -86,7 +86,7 @@ def read_wav_files(
8686

8787
def pad_list(arrays: list[npt.NDArray[np.float32]], axis: int = 0) -> tuple[npt.NDArray[np.float32], npt.NDArray[np.int64]]:
8888
"""Pad list of Numpy arrays to common length."""
89-
lens = np.array([array.shape[axis] for array in arrays], dtype=np.int64)
89+
lens = np.array([array.shape[axis] for array in arrays])
9090
max_len = lens.max()
9191

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

0 commit comments

Comments
 (0)