Update modeling_super_linear.py
Browse files225 unmodified lines226227228229230229230231232233234235236237238239225 unmodified lines
self.zero_shot_Linear = new_W # shape (self.horizon, new_lookback) else: W = self.Linear.weight.detach() W_3d = W.t().unsqueeze(0) W = self.Linear.weight.detach print(W.shape) W_3d = W.t().unsqueeze(0) print(W_3d.shape) W_pool = F.adaptive_avg_pool1d(W_3d, output_size=new_lookback) print(W_pool.shape) W_new = W_pool.squeeze(0).permute(2, 0).contiguous() print(W_new.shape) self.zero_shot_Linear = W_new modeling_super_linear.py+6-2