From 40c1dd507b30813d7fe03d65956ee8feb971e230 Mon Sep 17 00:00:00 2001 From: Danielle Pintz Date: Tue, 3 Jan 2023 14:09:38 -0800 Subject: [PATCH] Remove unnecessary pyre fixmes (#293) Summary: Pull Request resolved: https://github.com/pytorch/tnt/pull/293 Reviewed By: ananthsub Differential Revision: D42279549 fbshipit-source-id: 141cac13387b553e103b502c041991f64fea6fcb --- examples/framework/auto_unit_example.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/framework/auto_unit_example.py b/examples/framework/auto_unit_example.py index f72cd6bd36..c36eef008f 100644 --- a/examples/framework/auto_unit_example.py +++ b/examples/framework/auto_unit_example.py @@ -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 @@ -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