Update modeling_super_linear.py
Browse files- modeling_super_linear.py +2 -2
modeling_super_linear.py
CHANGED
|
@@ -238,12 +238,12 @@ class RLinear(nn.Module):
|
|
| 238 |
#if self.zero_shot_Linear is None:
|
| 239 |
#print(F"new Lookkback : {x.shape[1]}")
|
| 240 |
|
| 241 |
-
self.transform_model(x.shape[1],
|
| 242 |
|
| 243 |
x = x.clone()
|
| 244 |
#x = x * (x.shape[1]/512)
|
| 245 |
x = self.revin_layer(x, 'norm')
|
| 246 |
-
x = F.linear(x, self.zero_shot_Linear)
|
| 247 |
x = self.revin_layer(x, 'denorm')
|
| 248 |
#x = x * (512/x.shape[1])
|
| 249 |
return x
|
|
|
|
| 238 |
#if self.zero_shot_Linear is None:
|
| 239 |
#print(F"new Lookkback : {x.shape[1]}")
|
| 240 |
|
| 241 |
+
self.transform_model(x.shape[1],1)
|
| 242 |
|
| 243 |
x = x.clone()
|
| 244 |
#x = x * (x.shape[1]/512)
|
| 245 |
x = self.revin_layer(x, 'norm')
|
| 246 |
+
x = F.linear(x, self.zero_shot_Linear).clone()
|
| 247 |
x = self.revin_layer(x, 'denorm')
|
| 248 |
#x = x * (512/x.shape[1])
|
| 249 |
return x
|