mini-omni-s2s / slam_llm /utils /compute_utils.py
xcczach's picture
Upload 73 files
35c1cfd verified
raw
history blame contribute delete
132 Bytes
def calculate_output_length_1d(L_in, kernel_size, stride, padding=0):
return (L_in + 2 * padding - kernel_size) // stride + 1