Commit 355d6332 authored by generatedunixname89002005307016's avatar generatedunixname89002005307016 Committed by Facebook GitHub Bot
Browse files

upgrade pyre version in `fbcode/vision` - batch 2

Differential Revision: D44881859

fbshipit-source-id: 4ed410724a14d580f811c1288f51a71ce8fb0c9a
parent e245560a
......@@ -57,6 +57,7 @@ class ImplicitronEvaluator(EvaluatorBase):
def __post_init__(self):
run_auto_creation(self)
# pyre-fixme[14]: `run` overrides method defined in `EvaluatorBase` inconsistently.
def run(
self,
model: ImplicitronModelBase,
......
......@@ -41,6 +41,8 @@ class ModelDBIR(ImplicitronModelBase):
bg_color: Tuple[float, float, float] = (0.0, 0.0, 0.0)
max_points: int = -1
# pyre-fixme[14]: `forward` overrides method defined in `ImplicitronModelBase`
# inconsistently.
def forward(
self,
*, # force keyword-only arguments
......
......@@ -111,6 +111,8 @@ class AccumulativeRaymarcherBase(RaymarcherBase, torch.nn.Module):
"minimum": lambda curr, acc: torch.minimum(curr, acc),
}[self.weight_function_type]
# pyre-fixme[14]: `forward` overrides method defined in `RaymarcherBase`
# inconsistently.
def forward(
self,
rays_densities: torch.Tensor,
......
......@@ -491,6 +491,8 @@ class TexturesAtlas(TexturesBase):
new_tex._num_faces_per_mesh = new_props["_num_faces_per_mesh"]
return new_tex
# pyre-fixme[14]: `sample_textures` overrides method defined in `TexturesBase`
# inconsistently.
def sample_textures(self, fragments, **kwargs) -> torch.Tensor:
"""
This is similar to a nearest neighbor sampling and involves a
......@@ -927,6 +929,8 @@ class TexturesUV(TexturesBase):
new_tex._num_faces_per_mesh = new_props["_num_faces_per_mesh"]
return new_tex
# pyre-fixme[14]: `sample_textures` overrides method defined in `TexturesBase`
# inconsistently.
def sample_textures(self, fragments, **kwargs) -> torch.Tensor:
"""
Interpolate a 2D texture map using uv vertex texture coordinates for each
......@@ -1450,6 +1454,8 @@ class TexturesVertex(TexturesBase):
new_tex._num_verts_per_mesh = new_props["_num_verts_per_mesh"]
return new_tex
# pyre-fixme[14]: `sample_textures` overrides method defined in `TexturesBase`
# inconsistently.
def sample_textures(self, fragments, faces_packed=None) -> torch.Tensor:
"""
Determine the color for each rasterized face. Interpolate the colors for
......
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