Update modeling_super_linear.py
Browse files- modeling_super_linear.py +4 -5
modeling_super_linear.py
CHANGED
|
@@ -219,14 +219,13 @@ class RLinear(nn.Module):
|
|
| 219 |
#print(F"new Lookkback : {x.shape[1]}")
|
| 220 |
self.transform_model(x.shape[1])
|
| 221 |
|
| 222 |
-
|
| 223 |
-
x = x.unsqueeze(-1)
|
| 224 |
x = x.clone()
|
|
|
|
| 225 |
x = self.revin_layer(x, 'norm')
|
| 226 |
-
x = F.linear(x
|
| 227 |
x = self.revin_layer(x, 'denorm')
|
| 228 |
-
|
| 229 |
-
x = x.squeeze(-1)
|
| 230 |
return x
|
| 231 |
|
| 232 |
|
|
|
|
| 219 |
#print(F"new Lookkback : {x.shape[1]}")
|
| 220 |
self.transform_model(x.shape[1])
|
| 221 |
|
| 222 |
+
|
|
|
|
| 223 |
x = x.clone()
|
| 224 |
+
x = x * (x.shape[1]/512)
|
| 225 |
x = self.revin_layer(x, 'norm')
|
| 226 |
+
x = F.linear(x, self.zero_shot_Linear)
|
| 227 |
x = self.revin_layer(x, 'denorm')
|
| 228 |
+
x = x * (512/x.shape[1])
|
|
|
|
| 229 |
return x
|
| 230 |
|
| 231 |
|