Skip to main content

Mojo function

gpu_bicubic_kernel

gpu_bicubic_kernel[dtype: DType, rank: Int, output_shape: DimList, input_shape: DimList](output: NDBuffer[dtype, rank, MutableAnyOrigin, output_shape], input: NDBuffer[dtype, rank, MutableAnyOrigin, input_shape])

Perform bicubic interpolation using GPU.

Args:

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

Was this page helpful?