Skip to main content

Mojo function

resize_bicubic

resize_bicubic[dtype: DType, //, target: StringSlice[StaticConstantOrigin]](output: LayoutTensor[dtype, layout, origin, address_space=address_space, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], input: LayoutTensor[dtype, layout, origin, address_space=address_space, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], ctx: DeviceContextPtr)

Perform bicubic interpolation.

Args:

  • โ€‹output (LayoutTensor): Output tensor with desired dimensions on host or device.
  • โ€‹input (LayoutTensor): Input tensor of shape [B, C, H, W] on host or device.
  • โ€‹ctx (DeviceContextPtr): Device context to enqueue GPU kernels on.

Was this page helpful?