mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-07 10:01:39 +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
@ -4718,7 +4718,7 @@ def interpolate( # noqa: F811
|
||||
]
|
||||
elif torch.jit.is_scripting():
|
||||
output_size = [
|
||||
int(math.floor(float(input.size(i + 2)) * scale_factors[i]))
|
||||
math.floor(float(input.size(i + 2)) * scale_factors[i])
|
||||
for i in range(dim)
|
||||
]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user