Update modeling_super_linear.py
Browse files211 unmodified lines212213214215215216217218211 unmodified lines self.zero_shot_Linear = new_W else: W = self.Linear.weight.detach() new_W = F.interpolate(W.unsqueeze(0), size=(new_lookback, self.horizon ), mode='bilinear', align_corners=False).squeeze(0) new_W = F.interpolate(W.unsqueeze(-1), size=(new_lookback, self.horizon ), mode='bilinear', align_corners=False).squeeze(-1) self.zero_shot_Linear = new_W
modeling_super_linear.py+1-1