Update modeling_super_linear.py
Browse files356 unmodified lines357358359360361362363128 unmodified lines492493494494495496497498356 unmodified lines if get_prob: expert_probs = F.softmax(self.gate_outputs, dim=1) print(expert_probs.shape) return output, load_balancing_loss, expert_probs return output, load_balancing_loss128 unmodified lines return cycle
def forward(self, x_enc, x_mark_enc=None, x_dec=None, x_mark_dec=None, mask=None, freq=[None], get_prob=False): def forward(self, x_enc, x_mark_enc=None, x_dec=None, x_mark_dec=None, mask=None, freq=[None], get_prob=True): if len(x_enc.shape) > 2: x = x_enc.permute(0, 2, 1) B, V, L = x.shapemodeling_super_linear.py+2-1