Skip to content

Commit

Permalink
suppress errors in vision/fair/fvcore
Browse files Browse the repository at this point in the history
Differential Revision: D49309511

fbshipit-source-id: f93c779e55fdaed57a9e36278f846c66361265c7
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Sep 15, 2023
1 parent 0f2b23b commit 9d683aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fvcore/nn/focal_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def sigmoid_focal_loss(
return loss


# pyre-fixme[9]: sigmoid_focal_loss_jit has type `ScriptModule`; used as
# `ScriptFunction[..., typing.Any]`.
sigmoid_focal_loss_jit: "torch.jit.ScriptModule" = torch.jit.script(sigmoid_focal_loss)


Expand Down Expand Up @@ -94,6 +96,8 @@ def sigmoid_focal_loss_star(
return loss


# pyre-fixme[9]: sigmoid_focal_loss_star_jit has type `ScriptModule`; used as
# `ScriptFunction[..., typing.Any]`.
sigmoid_focal_loss_star_jit: "torch.jit.ScriptModule" = torch.jit.script(
sigmoid_focal_loss_star
)

0 comments on commit 9d683aa

Please sign in to comment.