File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -205,9 +205,13 @@ def get_recall_states(
205205 ) -> Dict [str , torch .Tensor ]:
206206
207207 predictions_ranked = ranking_within_session (predictions , session )
208+ # pyre-fixme[58]: `<` is not supported for operand types `Tensor` and
209+ # `Optional[int]`.
208210 predictions_labels = (predictions_ranked < self .top_threshold ).to (torch .int32 )
209211 if self .run_ranking_of_labels :
210212 labels_ranked = ranking_within_session (labels , session )
213+ # pyre-fixme[58]: `<` is not supported for operand types `Tensor` and
214+ # `Optional[int]`.
211215 labels = (labels_ranked < self .top_threshold ).to (torch .int32 )
212216 num_true_pos = _calc_num_true_pos (labels , predictions_labels , weights )
213217 num_false_neg = _calc_num_false_neg (labels , predictions_labels , weights )
You can’t perform that action at this time.
0 commit comments