Skip to content

Commit

Permalink
Remove unnecessary pyre fixmes (pytorch#293)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#293

Reviewed By: ananthsub

Differential Revision: D42279549

fbshipit-source-id: 141cac13387b553e103b502c041991f64fea6fcb
  • Loading branch information
daniellepintz authored and facebook-github-bot committed Jan 3, 2023
1 parent ac6ec2f commit 40c1dd5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/framework/auto_unit_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ def __init__(
self.tb_logger = tb_logger
# create an accuracy Metric to compute the accuracy of training
self.train_accuracy = train_accuracy
# pyre-fixme[4]: See T137070928
self.loss = None

# pyre-fixme[3]: See T137070928
def compute_loss(self, state: State, data: Batch) -> Tuple[torch.Tensor, Any]:
inputs, targets = data
# convert targets to float Tensor for binary_cross_entropy_with_logits
Expand All @@ -108,7 +106,6 @@ def update_metrics(
state: State,
data: Batch,
loss: torch.Tensor,
# pyre-fixme[2]: See T137070928
outputs: Any,
) -> None:
self.loss = loss
Expand Down

0 comments on commit 40c1dd5

Please sign in to comment.