IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

roi_align_shape

def roi_align_shape(input: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=input.static_spec], rois: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=rois.static_spec], output_height: Int64, output_width: Int64, spatial_scale: Scalar, sampling_ratio: Scalar) -> IndexList[Int(4)]

Computes the output shape for the mo.roi_align graph op.

Args:

Returns:

IndexList[Int(4)]: The output shape (num_rois, output_height, output_width, channels).