Update modeling_super_linear.py
Browse files356 unmodified lines357358359360361362128 unmodified lines491492493494495496497356 unmodified linesif get_prob:expert_probs = F.softmax(self.gate_outputs, dim=1)return output, load_balancing_loss, expert_probsreturn output, load_balancing_loss128 unmodified linesreturn cycledef forward(self, x_enc, x_mark_enc=None, x_dec=None, x_mark_dec=None, mask=None, freq=[None], get_prob=False):if len(x_enc.shape) > 2:x = x_enc.permute(0, 2, 1)B, V, L = x.shape356 unmodified lines357358359360361362363128 unmodified lines492493494495496497498356 unmodified linesif get_prob:expert_probs = F.softmax(self.gate_outputs, dim=1)print(expert_probs.shape)return output, load_balancing_loss, expert_probsreturn output, load_balancing_loss128 unmodified linesreturn cycledef 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.shape
modeling_super_linear.py+2-1