Update modeling_super_linear.py
Browse files451 unmodified lines45245345445545645745845946046146210 unmodified lines473474475476477478479451 unmodified linesx = x_enc.permute(0, 2, 1)B, V, L = x.shapeelse:x = x_encB, L = x.shapeV = 1x = x.reshape(B * V, L)expert_probs = None10 unmodified linesoutputs.append(ar_out)ar_x = torch.cat([ar_x, ar_out], dim=1)[:, -self.seq_len:]out = torch.cat(outputs, dim=1)[:, :self.inf_pred_len]out = out.reshape(B, V, out.shape[-1])result = out.permute(0, 2, 1)if get_prob:451 unmodified lines45245345445545645745845946046146246346410 unmodified lines475476477478479480481482483451 unmodified linesx = x_enc.permute(0, 2, 1)B, V, L = x.shapeelse:x = x_encB, L = x.shapeV = 1x = x.reshape(B * V, L)print("RAZ")print(x.shape)expert_probs = None10 unmodified linesoutputs.append(ar_out)ar_x = torch.cat([ar_x, ar_out], dim=1)[:, -self.seq_len:]out = torch.cat(outputs, dim=1)[:, :self.inf_pred_len]print(F"out1 :{out.shape}")out = out.reshape(B, V, out.shape[-1])print(F"out2 :{out.shape}")result = out.permute(0, 2, 1)if get_prob:
modeling_super_linear.py+5-1