mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE] Enable ruff's UP rules and autoformat nn/ mps/ and torch/ (#105436)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105436 Approved by: https://github.com/malfet, https://github.com/albanD
This commit is contained in:
committed by
PyTorch MergeBot
parent
322dff475c
commit
79c5e33349
@ -68,7 +68,7 @@ class TorchVersion(str):
|
||||
# * (1) -> Version("1")
|
||||
# * (1, 20) -> Version("1.20")
|
||||
# * (1, 20, 1) -> Version("1.20.1")
|
||||
return Version('.'.join((str(item) for item in inp)))
|
||||
return Version('.'.join(str(item) for item in inp))
|
||||
else:
|
||||
raise InvalidVersion(inp)
|
||||
|
||||
|
Reference in New Issue
Block a user