Skip to main content

Mojo function

cpu_bicubic_kernel

cpu_bicubic_kernel(output_host: 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_host: 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])

Perform bicubic interpolation on a LayoutTensor of form NCHW.

Args:

  • output_host (LayoutTensor): Output tensor with desired dimensions.
  • input_host (LayoutTensor): Input tensor of shape [B, C, H, W].

Was this page helpful?