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 function
gpu_bicubic_kernel
def gpu_bicubic_kernel[dtype: DType, OutputLayoutType: TensorLayout, output_origin: MutOrigin, InputLayoutType: TensorLayout, input_origin: ImmOrigin](output: TileTensor[dtype, OutputLayoutType, output_origin], input: TileTensor[dtype, InputLayoutType, input_origin])
Perform bicubic interpolation using GPU.
Parameters:
- βdtype (
DType): Element type of the input and output tensors. - βOutputLayoutType (
TensorLayout):TensorLayoutof the output tensor. - βoutput_origin (
MutOrigin): MutableOriginof the output tensor. - βInputLayoutType (
TensorLayout):TensorLayoutof the input tensor. - βinput_origin (
ImmOrigin): ImmutableOriginof the input tensor.
Args:
- βoutput (
TileTensor[dtype, OutputLayoutType, output_origin]): Output tensor with desired dimensions on the device. - βinput (
TileTensor[dtype, InputLayoutType, input_origin]): Input tensor of shape [B, C, H, W] on the device.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!