Removed a useless comparison
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.
正在显示
请
注册
或者
登录
后发表评论