mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 20:02:49 +08:00
formatting changes from black 22.3.0
Summary: Applies the black-fbsource codemod with the new build of pyfmt. paintitblack Reviewed By: lisroach Differential Revision: D36324783 fbshipit-source-id: 280c09e88257e5e569ab729691165d8dedd767bc
This commit is contained in:
parent
c21ba144e7
commit
bef959c755
@ -71,6 +71,5 @@ elif sys.version_info >= (3, 7, 0):
|
|||||||
def get_args(cls): # pragma: no cover
|
def get_args(cls): # pragma: no cover
|
||||||
return getattr(cls, "__args__", None)
|
return getattr(cls, "__args__", None)
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise ImportError("This module requires Python 3.7+")
|
raise ImportError("This module requires Python 3.7+")
|
||||||
|
@ -87,7 +87,7 @@ class BaseRenderer(ABC, ReplaceableBase):
|
|||||||
ray_bundle,
|
ray_bundle,
|
||||||
implicit_functions: List[ImplicitFunctionWrapper],
|
implicit_functions: List[ImplicitFunctionWrapper],
|
||||||
evaluation_mode: EvaluationMode = EvaluationMode.EVALUATION,
|
evaluation_mode: EvaluationMode = EvaluationMode.EVALUATION,
|
||||||
**kwargs
|
**kwargs,
|
||||||
) -> RendererOutput:
|
) -> RendererOutput:
|
||||||
"""
|
"""
|
||||||
Each Renderer should implement its own forward function
|
Each Renderer should implement its own forward function
|
||||||
|
1
setup.py
1
setup.py
@ -125,7 +125,6 @@ if os.getenv("PYTORCH3D_NO_NINJA", "0") == "1":
|
|||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(use_ninja=False, *args, **kwargs)
|
super().__init__(use_ninja=False, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
BuildExtension = torch.utils.cpp_extension.BuildExtension
|
BuildExtension = torch.utils.cpp_extension.BuildExtension
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user