shixian.shi
2023-05-04 c91430542e219463b12530145cc338d26ef7c358
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")