mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-03-15 17:05:58 +08:00
Convert directory fbcode/vision to use the Ruff Formatter
Summary:
Converts the directory specified to use the Ruff formatter in pyfmt
ruff_dog
If this diff causes merge conflicts when rebasing, please run
`hg status -n -0 --change . -I '**/*.{py,pyi}' | xargs -0 arc pyfmt`
on your diff, and amend any changes before rebasing onto latest.
That should help reduce or eliminate any merge conflicts.
allow-large-files
Reviewed By: bottler
Differential Revision: D66472063
fbshipit-source-id: 35841cb397e4f8e066e2159550d2f56b403b1bef
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f6c2ca6bfc
commit
055ab3a2e3
@@ -114,7 +114,6 @@ class TensorProperties(nn.Module):
|
||||
self.device = make_device(device)
|
||||
self._N = 0
|
||||
if kwargs is not None:
|
||||
|
||||
# broadcast all inputs which are float/int/list/tuple/tensor/array
|
||||
# set as attributes anything else e.g. strings, bools
|
||||
args_to_broadcast = {}
|
||||
@@ -439,7 +438,7 @@ def ndc_to_grid_sample_coords(
|
||||
|
||||
|
||||
def parse_image_size(
|
||||
image_size: Union[List[int], Tuple[int, int], int]
|
||||
image_size: Union[List[int], Tuple[int, int], int],
|
||||
) -> Tuple[int, int]:
|
||||
"""
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user