Update modeling_super_linear.py
Browse files215 unmodified lines216217218219220221222223224225226215 unmodified linesx_shape = x.shapeif x.shape[1] < self.seq_len:if self.zero_shot_Linear is None:self.transform_model(x.shape[1])x = x.clone()x = self.revin_layer(x, 'norm')x = F.linear(x, self.zero_shot_Linear).clone()x = self.revin_layer(x, 'denorm')return x215 unmodified lines216217218219220221222223224225226227228229230231232215 unmodified linesx_shape = x.shapeif x.shape[1] < self.seq_len:if self.zero_shot_Linear is None:print(F"new Lookkback : {x.shape[1]}")self.transform_model(x.shape[1])if len(x_shape) == 2:x = x.unsqueeze(-1)x = x.clone()x = self.revin_layer(x, 'norm')x = F.linear(x.permute(0,2,1), self.zero_shot_Linear).permute(0,2,1).clone()x = self.revin_layer(x, 'denorm')if len(x_shape) == 2:x = x.squeeze(-1)return x
modeling_super_linear.py+7-1