speech_asr
2023-04-18 1eb85d7d17a12877e36feefcb3bb2f20a2c171f0
funasr/models/pooling/statistic_pooling.py
@@ -82,7 +82,7 @@
    tt = xs_pad.shape[2]
    num_chunk = int(math.ceil(tt / pooling_stride))
    pad = pooling_size // 2
    if len(xs_pad.shape == 4):
    if len(xs_pad.shape) == 4:
        features = F.pad(xs_pad, (0, 0, pad, pad), "reflect")
    else:
        features = F.pad(xs_pad, (pad, pad), "reflect")