For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo module
pad_gpu
Implements GPU-specific tensor padding kernels with constant or edge-fill strategies.
Functionsβ
- β
get_padding_output_shape: Computes the output shape produced by paddinginput_shapewith the before/after amounts given inpaddings. - β
pad_constant: Filloutputwith values frominput, and edges padded withconstantbased onpaddings. - β
padded_copy_kernel: Copies rows frominput_tensorinto the unpadded region ofoutput_tensorusing a cooperatively vectorized, coalesced row copy.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!