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?
Thank you! We'll create more content like this.
Thank you for helping us improve!