reverse (bool: False): tensor data format order, False by default as [fout, fin, ...]. e.g. : conv.weight [cout, cin, kh, kw] is False; linear.weight [cin, cout] is True
Return:
Tuple[fan_in, fan_out]
"""
iftensor.ndim<2:
raiseValueError(
"Fan in and fan out can not be computed for tensor with fewer than 2 dimensions"