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
from typing import Optional, Tuple from typing import Optional, Tuple
import torch import torch
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
# Adapted from https://github.com/lioryariv/idr # Adapted from https://github.com/lioryariv/idr
# Copyright (c) 2020 Lior Yariv # Copyright (c) 2020 Lior Yariv
# pyre-unsafe
from typing import Any, Callable, Tuple from typing import Any, Callable, 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 Any, Callable, Dict, Optional, Tuple from typing import Any, Callable, Dict, Optional, Tuple
import torch import torch
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
# https://github.com/lioryariv/idr/ # https://github.com/lioryariv/idr/
# Copyright (c) 2020 Lior Yariv # Copyright (c) 2020 Lior Yariv
# pyre-unsafe
import logging import logging
from typing import List, Tuple from typing import List, Tuple
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
# Adapted from https://github.com/lioryariv/idr/blob/main/code/model/ # Adapted from https://github.com/lioryariv/idr/blob/main/code/model/
# implicit_differentiable_renderer.py # implicit_differentiable_renderer.py
# Copyright (c) 2020 Lior Yariv # Copyright (c) 2020 Lior Yariv
# pyre-unsafe
import functools import functools
from typing import List, Optional, Tuple from typing import List, Optional, 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
# Note: The #noqa comments below are for unused imports of pluggable implementations # Note: The #noqa comments below are for unused imports of pluggable implementations
# which are part of implicitron. They ensure that the registry is prepopulated. # which are part of implicitron. They ensure that the registry is prepopulated.
......
...@@ -3,3 +3,5 @@ ...@@ -3,3 +3,5 @@
# #
# 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
...@@ -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 abc import ABC, abstractmethod from abc import ABC, abstractmethod
from enum import Enum from enum import Enum
from typing import Dict, Optional, Sequence, Tuple, Union from typing import Dict, Optional, Sequence, 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 Dict, List, Optional, Union from typing import Dict, List, Optional, Union
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 Dict, List, Optional, Tuple, Union from typing import Dict, List, Optional, Tuple, Union
import torch import torch
......
...@@ -4,3 +4,5 @@ ...@@ -4,3 +4,5 @@
# #
# 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
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,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 logging import logging
import math import math
......
...@@ -3,3 +3,5 @@ ...@@ -3,3 +3,5 @@
# #
# 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
# a copy-paste from https://github.com/vsitzmann/scene-representation-networks/blob/master/hyperlayers.py # a copy-paste from https://github.com/vsitzmann/scene-representation-networks/blob/master/hyperlayers.py
# fmt: off # fmt: off
# flake8: noqa # flake8: noqa
# pyre-unsafe
'''Pytorch implementations of hyper-network modules. '''Pytorch implementations of hyper-network modules.
''' '''
import functools import functools
......
# a copy-paste from https://raw.githubusercontent.com/vsitzmann/pytorch_prototyping/10f49b1e7df38a58fd78451eac91d7ac1a21df64/pytorch_prototyping.py # a copy-paste from https://raw.githubusercontent.com/vsitzmann/pytorch_prototyping/10f49b1e7df38a58fd78451eac91d7ac1a21df64/pytorch_prototyping.py
# fmt: off # fmt: off
# flake8: noqa # flake8: noqa
# pyre-unsafe
'''A number of custom pytorch modules with sane defaults that I find useful for model prototyping. '''A number of custom pytorch modules with sane defaults that I find useful for model prototyping.
''' '''
import torch import torch
......
...@@ -3,3 +3,5 @@ ...@@ -3,3 +3,5 @@
# #
# 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
...@@ -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
# TODO: all this potentially goes to PyTorch3D # TODO: all this potentially goes to PyTorch3D
......
...@@ -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 dataclasses import dataclass from dataclasses import dataclass
from math import pi from math import pi
......
...@@ -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
import inspect import inspect
import itertools import itertools
......
...@@ -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 Fu import torch.nn.functional as Fu
from pytorch3d.ops import wmean from pytorch3d.ops import wmean
......
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