Skip to content

Commit c2bd375

Browse files
committed
Update docstring: tighten wording and fix dtype spelling
Signed-off-by: reworld223 <[email protected]>
1 parent 3282662 commit c2bd375

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

monai/data/box_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -826,9 +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-
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``.
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 ``torch.float32``.
832832
833833
"""
834834

0 commit comments

Comments
 (0)