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(
205
205
) -> Dict [str , torch .Tensor ]:
206
206
207
207
predictions_ranked = ranking_within_session (predictions , session )
208
+ # pyre-fixme[58]: `<` is not supported for operand types `Tensor` and
209
+ # `Optional[int]`.
208
210
predictions_labels = (predictions_ranked < self .top_threshold ).to (torch .int32 )
209
211
if self .run_ranking_of_labels :
210
212
labels_ranked = ranking_within_session (labels , session )
213
+ # pyre-fixme[58]: `<` is not supported for operand types `Tensor` and
214
+ # `Optional[int]`.
211
215
labels = (labels_ranked < self .top_threshold ).to (torch .int32 )
212
216
num_true_pos = _calc_num_true_pos (labels , predictions_labels , weights )
213
217
num_false_neg = _calc_num_false_neg (labels , predictions_labels , weights )
You can’t perform that action at this time.
0 commit comments