mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix global flake8 issues (#124771)
Prior to this `lintrunner --all-files --take FLAKE8` failed. Pull Request resolved: https://github.com/pytorch/pytorch/pull/124771 Approved by: https://github.com/Skylion007 ghstack dependencies: #124428
This commit is contained in:
committed by
PyTorch MergeBot
parent
609c958281
commit
a8574a9719
@ -2008,7 +2008,7 @@ def min_scalar_type(a: ArrayLike, /):
|
||||
from ._dtypes import DType
|
||||
|
||||
if a.numel() > 1:
|
||||
# numpy docs: "For non-scalar array a, returns the vector’s dtype unmodified."
|
||||
# numpy docs: "For non-scalar array a, returns the vector's dtype unmodified."
|
||||
return DType(a.dtype)
|
||||
|
||||
if a.dtype == torch.bool:
|
||||
|
||||
Reference in New Issue
Block a user