Skip to main content

Mojo function

top_k_shape

top_k_shape[dtype: DType, single_thread_blocking_override: Bool](input: LayoutTensor[dtype, layout, origin, address_space=address_space, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], max_k: Int, axis: Int) -> IndexList[layout.rank()]

Returns:

IndexList

Was this page helpful?