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 module
pad
Implements tensor padding with constant or edge values for CPU and GPU.
Functions
-
pad_constant: Filloutputwith values frominput, and edges padded withconstantbased onpaddings. -
pad_reflect: Filloutputwith values frominput, and edges padded with reflected values from the unpadded region. -
pad_repeat: Filloutputwith values frominput, and edges padded boundary values from the unpadded region. -
pad_shape: Compute the output shape of apadoperation, and assert the inputs are compatible.