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
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.