Skip to main content

Mojo function

gpu_bicubic_kernel

gpu_bicubic_kernel[input_dim: DimList, output_dim: DimList, type: DType](input: NDBuffer[type, 4, MutableAnyOrigin, input_dim], output: NDBuffer[type, 4, MutableAnyOrigin, output_dim])

Perform bicubic interpolation using GPU.

Args:

  • input (NDBuffer[type, 4, MutableAnyOrigin, input_dim]): Input tensor of shape [B, C, H, W] on the device.
  • output (NDBuffer[type, 4, MutableAnyOrigin, output_dim]): Output tensor with desired dimensions on the device.

Was this page helpful?