mixmo.utils.torchutils._calculate_correct_fan

mixmo.utils.torchutils._calculate_correct_fan(tensor, mode)[source]

Return the minimal input or output sizes for the weight tensor depending on which is needed