Skip to main content

Mojo function

gpu_bicubic_kernel

gpu_bicubic_kernel[type: DType, rank: Int](output: NDBuffer[type, rank, MutableAnyOrigin], input: NDBuffer[type, rank, MutableAnyOrigin])

Perform bicubic interpolation using GPU.

Args:

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

Was this page helpful?