Update modeling_super_linear.py
Browse files600 unmodified lines601602603604604605606607600 unmodified lines upsample = 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:, :] upsample = upsample.permute(0, 2, 1)[:, -target_len:, :] # If input was 2D, remove the channel dimension if x.shape[1] == 1:modeling_super_linear.py+1-1