Update modeling_super_linear.py
Browse files- modeling_super_linear.py +1 -1
modeling_super_linear.py
CHANGED
|
@@ -212,7 +212,7 @@ class RLinear(nn.Module):
|
|
| 212 |
self.zero_shot_Linear = new_W
|
| 213 |
else:
|
| 214 |
W = self.Linear.weight.detach()
|
| 215 |
-
new_W = F.interpolate(W.unsqueeze(
|
| 216 |
self.zero_shot_Linear = new_W
|
| 217 |
|
| 218 |
|
|
|
|
| 212 |
self.zero_shot_Linear = new_W
|
| 213 |
else:
|
| 214 |
W = self.Linear.weight.detach()
|
| 215 |
+
new_W = F.interpolate(W.unsqueeze(-1), size=(new_lookback, self.horizon ), mode='bilinear', align_corners=False).squeeze(-1)
|
| 216 |
self.zero_shot_Linear = new_W
|
| 217 |
|
| 218 |
|