razmars commited on
Commit
7a14bb4
·
verified ·
1 Parent(s): 9b2e58f

Update modeling_super_linear.py

Browse files
Files changed (1) hide show
  1. modeling_super_linear.py +3 -3
modeling_super_linear.py CHANGED
@@ -227,11 +227,11 @@ class RLinear(nn.Module):
227
  self.zero_shot_Linear = new_W # shape (self.horizon, new_lookback)
228
  else:
229
  W = self.Linear.weight.detach()
230
- print(W.shape)
231
  W_3d = W.unsqueeze(0)
232
- print(W_3d.shape)
233
  W_new = F.adaptive_avg_pool1d(W_3d, new_lookback).squeeze(0)
234
- print(W_new.shape)
235
  self.zero_shot_Linear = W_new
236
 
237
 
 
227
  self.zero_shot_Linear = new_W # shape (self.horizon, new_lookback)
228
  else:
229
  W = self.Linear.weight.detach()
230
+ #print(W.shape)
231
  W_3d = W.unsqueeze(0)
232
+ #print(W_3d.shape)
233
  W_new = F.adaptive_avg_pool1d(W_3d, new_lookback).squeeze(0)
234
+ #print(W_new.shape)
235
  self.zero_shot_Linear = W_new
236
 
237