Skip to content

Commit

Permalink
_irs_mis_sz_fn
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Sep 26, 2023
1 parent 43b4d3a commit 32b0e24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unittests/retrieval/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _concat_tests(*tests: Tuple[Dict]) -> Dict:
"argnames": "preds,target,message,metric_args",
"argvalues": [
# check input shapes are consistent (func)
(_irs_mis_sz_fn.preds, _irs_bad_sz_fn.target, "`preds` and `target` must be of the same shape", {}),
(_irs_bad_sz_fn.preds, _irs_bad_sz_fn.target, "`preds` and `target` must be of the same shape", {}),
# check input tensors are not empty
(_irs_empty.preds, _irs_empty.target, "`preds` and `target` must be non-empty and non-scalar tensors", {}),
# check on input dtypes
Expand All @@ -150,7 +150,7 @@ def _concat_tests(*tests: Tuple[Dict]) -> Dict:
"argnames": "preds,target,message,metric_args",
"argvalues": [
# check input shapes are consistent (func)
(_irs_mis_sz_fn.preds, _irs_bad_sz_fn.target, "`preds` and `target` must be of the same shape", {}),
(_irs_bad_sz_fn.preds, _irs_bad_sz_fn.target, "`preds` and `target` must be of the same shape", {}),
# check input tensors are not empty
(_irs_empty.preds, _irs_empty.target, "`preds` and `target` must be non-empty and non-scalar tensors", {}),
# check on input dtypes
Expand Down

0 comments on commit 32b0e24

Please sign in to comment.