mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
[1/N] Fix ruff warnings (#164333)
Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/164333 Approved by: https://github.com/albanD
This commit is contained in:
committed by
PyTorch MergeBot
parent
e419dc6d08
commit
f7ab8a2710
@ -247,7 +247,7 @@ def _vector_str(self, indent, summarize, formatter1, formatter2=None):
|
||||
element_length += formatter2.width() + 1
|
||||
|
||||
elements_per_line = max(
|
||||
1, int(math.floor((PRINT_OPTS.linewidth - indent) / (element_length)))
|
||||
1, math.floor((PRINT_OPTS.linewidth - indent) / (element_length))
|
||||
)
|
||||
|
||||
def _val_formatter(val, formatter1=formatter1, formatter2=formatter2):
|
||||
|
Reference in New Issue
Block a user