Skip to content

Commit c8ca7f6

Browse files
committed
In-line dicstrings updated
1 parent 3cff626 commit c8ca7f6

File tree

30 files changed

+45
-1
lines changed

30 files changed

+45
-1
lines changed

monai/data/box_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,9 @@ def box_iou(boxes1: NdarrayOrTensor, boxes2: NdarrayOrTensor) -> NdarrayOrTensor
826826
boxes2: bounding boxes, Mx4 or Mx6 torch tensor or ndarray. The box mode is assumed to be ``StandardMode``
827827
828828
Returns:
829-
IoU, with size of (N,M) and same data type as ``boxes1``
829+
The output is always floating point:
830+
- if ``boxes1`` has a floating point dtype, the same dtype is used.
831+
- if ``boxes1`` has an integer dtype, the result is returned as ``float32``.
830832
831833
"""
832834

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)