Update modeling_super_linear.py
Browse files227 unmodified lines228229230231232233234235236237238227 unmodified lineselse: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).transpose(0, 1).contiguous()print(W_new.shape)self.zero_shot_Linear = W_new227 unmodified lines228229230231232233234235236227 unmodified lineselse:W = self.Linear.weight.detach()print(W.shape)W_3d = W.unsqueeze(0)print(W_3d.shape)W_new = F.adaptive_avg_pool1d(W_3d, new_lookback).squeeze(0)print(W_new.shape)self.zero_shot_Linear = W_new
modeling_super_linear.py+2-4