• Olivier Delalleau's avatar
    Removed a useless comparison · 87e636be
    Olivier Delalleau 提交于
    If 'axis' is empty then x.ndim must be equal to zero, and thus we also
    have 'axis == range(x.ndim)'.
    If x.ndim in non-zero, there is no reason for axis to be empty, so
    better not catch this case.
    87e636be
basic.py 197.4 KB