Closed dgcnz closed 3 months ago
I'm too lazy to switch branches right now but this is the solution for (num_filter_banks, groups):
def get_weight_constraint(w: torch.Tensor): w = w.unsqueeze(2) return torch.triu(w - w.transpose(1, 2)).abs().sum()
@Nesta-gitU
done
I'm too lazy to switch branches right now but this is the solution for (num_filter_banks, groups):