Update modeling_super_linear.py
Browse files600 unmodified lines601602603604605606607600 unmodified linesupsample = interpolate(x, scale_factor=scale_factor, mode='linear') # [B, C, new_L]# Take last 500 timesteps and rearrange to [B, L, C]upsample = upsample.permute(0, 2, 1)[:, -500:, :]# If input was 2D, remove the channel dimensionif x.shape[1] == 1:600 unmodified lines601602603604605606607600 unmodified linesupsample = interpolate(x, scale_factor=scale_factor, mode='linear') # [B, C, new_L]# Take last 500 timesteps and rearrange to [B, L, C]upsample = upsample.permute(0, 2, 1)[:, -target_len:, :]# If input was 2D, remove the channel dimensionif x.shape[1] == 1:
modeling_super_linear.py+1-1