Skip to main content
Log in

Mojo function

non_max_suppression_shape_func

non_max_suppression_shape_func[type: DType](boxes: NDBuffer[type, 3, origin], scores: NDBuffer[type, 3, origin], max_output_boxes_per_class: Int, iou_threshold: SIMD[float32, 1], score_threshold: SIMD[float32, 1]) -> Index[2]

Overload to compute the output shape. Can be removed once the graph compiler supports value semantic kernels that allocate their own output.