We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bbde84 commit 490c1b6Copy full SHA for 490c1b6
1 file changed
src/onnx_asr/utils.py
@@ -86,7 +86,7 @@ def read_wav_files(
86
87
def pad_list(arrays: list[npt.NDArray[np.float32]], axis: int = 0) -> tuple[npt.NDArray[np.float32], npt.NDArray[np.int64]]:
88
"""Pad list of Numpy arrays to common length."""
89
- lens = np.array([array.shape[axis] for array in arrays], dtype=np.int64)
+ lens = np.array([array.shape[axis] for array in arrays])
90
max_len = lens.max()
91
92
def pads(array: npt.NDArray[np.float32]) -> list[tuple[int, int]]:
0 commit comments