Mojo function
distribute
distribute[dtype: DType, rank: Int, shape: DimList, thread_layout: Layout, _result_shape: DimList = __distribute_shape[layout::layout::Layout]($2), swizzle: OptionalReg[fn[DType](SIMD[$0, 1]) -> SIMD[$0, 1]] = OptionalReg(None), element_size: Int = 1](buff: NDBuffer[dtype, rank, shape], thread_id: Int) -> NDBuffer[dtype, rank, _result_shape]
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!