Commit ea4f3260 authored by John Reese's avatar John Reese Committed by Facebook GitHub Bot
Browse files

apply new formatting config

Summary:
pyfmt now specifies a target Python version of 3.8 when formatting
with black. With this new config, black adds trailing commas to all
multiline function calls. This applies the new formatting as part
of rolling out the linttool-integration for pyfmt.

paintitblack

Reviewed By: zertosh, lisroach

Differential Revision: D37084377

fbshipit-source-id: 781a1b883a381a172e54d6e447137657977876b4
parent 023a2369
...@@ -377,7 +377,7 @@ class R2N2(ShapeNetBase): # pragma: no cover ...@@ -377,7 +377,7 @@ class R2N2(ShapeNetBase): # pragma: no cover
view_idxs: Optional[List[int]] = None, view_idxs: Optional[List[int]] = None,
shader_type=HardPhongShader, shader_type=HardPhongShader,
device: Device = "cpu", device: Device = "cpu",
**kwargs **kwargs,
) -> torch.Tensor: ) -> torch.Tensor:
""" """
Render models with BlenderCamera by default to achieve the same orientations as the Render models with BlenderCamera by default to achieve the same orientations as the
......
...@@ -113,7 +113,7 @@ class ShapeNetBase(torch.utils.data.Dataset): # pragma: no cover ...@@ -113,7 +113,7 @@ class ShapeNetBase(torch.utils.data.Dataset): # pragma: no cover
idxs: Optional[List[int]] = None, idxs: Optional[List[int]] = None,
shader_type=HardPhongShader, shader_type=HardPhongShader,
device: Device = "cpu", device: Device = "cpu",
**kwargs **kwargs,
) -> torch.Tensor: ) -> torch.Tensor:
""" """
If a list of model_ids are supplied, render all the objects by the given model_ids. If a list of model_ids are supplied, render all the objects by the given model_ids.
......
...@@ -30,7 +30,7 @@ class FeatureExtractorBase(ReplaceableBase, torch.nn.Module): ...@@ -30,7 +30,7 @@ class FeatureExtractorBase(ReplaceableBase, torch.nn.Module):
self, self,
imgs: Optional[torch.Tensor], imgs: Optional[torch.Tensor],
masks: Optional[torch.Tensor] = None, masks: Optional[torch.Tensor] = None,
**kwargs **kwargs,
) -> Dict[Any, torch.Tensor]: ) -> Dict[Any, torch.Tensor]:
""" """
Args: Args:
......
...@@ -109,7 +109,7 @@ class MultiPassEmissionAbsorptionRenderer( # pyre-ignore: 13 ...@@ -109,7 +109,7 @@ class MultiPassEmissionAbsorptionRenderer( # pyre-ignore: 13
ray_bundle: RayBundle, ray_bundle: RayBundle,
implicit_functions: List[ImplicitFunctionWrapper] = [], implicit_functions: List[ImplicitFunctionWrapper] = [],
evaluation_mode: EvaluationMode = EvaluationMode.EVALUATION, evaluation_mode: EvaluationMode = EvaluationMode.EVALUATION,
**kwargs **kwargs,
) -> RendererOutput: ) -> RendererOutput:
""" """
Args: Args:
......
...@@ -75,7 +75,7 @@ def render_point_cloud_pytorch3d( ...@@ -75,7 +75,7 @@ def render_point_cloud_pytorch3d(
eps: float = 1e-2, eps: float = 1e-2,
bg_color=None, bg_color=None,
bin_size: Optional[int] = None, bin_size: Optional[int] = None,
**kwargs **kwargs,
): ):
# feature dimension # feature dimension
......
...@@ -176,7 +176,7 @@ class ImplicitRenderer(torch.nn.Module): ...@@ -176,7 +176,7 @@ class ImplicitRenderer(torch.nn.Module):
rays_densities=rays_densities, rays_densities=rays_densities,
rays_features=rays_features, rays_features=rays_features,
ray_bundle=ray_bundle, ray_bundle=ray_bundle,
**kwargs **kwargs,
) )
# images - minibatch x ... x (feature_dim + opacity_dim) # images - minibatch x ... x (feature_dim + opacity_dim)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment