Commit a27755db authored by Conner Nilsen's avatar Conner Nilsen Committed by Facebook GitHub Bot
Browse files

Pyre Configurationless migration for] [batch:85/112] [shard:6/N]

Reviewed By: inseokhwang

Differential Revision: D54438157

fbshipit-source-id: a6acfe146ed29fff82123b5e458906d4b4cee6a2
parent 3da7703c
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import torch import torch
from pytorch3d import _C from pytorch3d import _C
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import dataclasses import dataclasses
from typing import NamedTuple, Optional, Union from typing import NamedTuple, Optional, Union
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import torch import torch
import torch.nn.functional as F import torch.nn.functional as F
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import torch import torch
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from .clip import ( from .clip import (
clip_faces, clip_faces,
ClipFrustum, ClipFrustum,
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Any, List, Optional, Tuple from typing import Any, List, Optional, Tuple
import torch import torch
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import List, Optional, Tuple, Union from typing import List, Optional, Tuple, Union
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from dataclasses import dataclass from dataclasses import dataclass
from typing import Optional, Tuple, Union from typing import Optional, Tuple, Union
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Tuple from typing import Tuple
import torch import torch
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import warnings import warnings
from typing import Optional from typing import Optional
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Tuple from typing import Tuple
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
import itertools import itertools
import warnings import warnings
from typing import Dict, List, Optional, Tuple, TYPE_CHECKING, Union from typing import Dict, List, Optional, Tuple, TYPE_CHECKING, Union
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import List, NamedTuple, Tuple from typing import List, NamedTuple, Tuple
import torch import torch
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
# If we can access EGL, import MeshRasterizerOpenGL. # If we can access EGL, import MeshRasterizerOpenGL.
def _can_import_egl_and_pycuda(): def _can_import_egl_and_pycuda():
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
# Utilities useful for OpenGL rendering. # Utilities useful for OpenGL rendering.
# #
# NOTE: This module MUST be imported before any other OpenGL modules in this Python # NOTE: This module MUST be imported before any other OpenGL modules in this Python
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
# NOTE: This module (as well as rasterizer_opengl) will not be imported into pytorch3d # NOTE: This module (as well as rasterizer_opengl) will not be imported into pytorch3d
# if you do not have pycuda.gl and pyopengl installed. In addition, please make sure # if you do not have pycuda.gl and pyopengl installed. In addition, please make sure
# your Python application *does not* import OpenGL before importing PyTorch3D, unless # your Python application *does not* import OpenGL before importing PyTorch3D, unless
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from .compositor import AlphaCompositor, NormWeightedCompositor from .compositor import AlphaCompositor, NormWeightedCompositor
from .pulsar.unified import PulsarPointsRenderer from .pulsar.unified import PulsarPointsRenderer
from .rasterize_points import rasterize_points from .rasterize_points import rasterize_points
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import List, Optional, Tuple, Union from typing import List, Optional, Tuple, Union
import torch import torch
......
...@@ -4,4 +4,6 @@ ...@@ -4,4 +4,6 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
from .renderer import Renderer # noqa: F401 from .renderer import Renderer # noqa: F401
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the # This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# pyre-unsafe
"""pulsar renderer PyTorch integration. """pulsar renderer PyTorch integration.
Proper Python support for pytorch requires creating a torch.autograd.function Proper Python support for pytorch requires creating a torch.autograd.function
......
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