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
resize
Implements tensor resize (upsample/downsample) with nearest, bilinear, and other interpolation modes.
Structsβ
- β
CoordinateTransformationMode: Specifies how output coordinates map to input coordinates during resize. - β
InterpolationMode: Specifies the interpolation method used during resize. - β
Interpolator: Holds interpolation filter state and applies the filter for a given interpolation mode. - β
RoundMode: Specifies how fractional coordinates are rounded to integer indices during nearest-neighbor resize.
Functionsβ
- β
coord_transform: Maps an output coordinate to an input coordinate according to the given transformation mode. - β
interpolate_point_1d: Computes one-dimensional interpolation for a single output point along a given dimension. - β
linear_filter: This is a tent filter. - β
resize_linear: Resizes input to output shape using linear interpolation. - β
resize_nearest_neighbor: Resizes input to output shape using nearest-neighbor interpolation.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!