Skip to content
fn

interpolate_bilinear_op

→TensorImplPtr
int interpolate_bilinear_op(const int & input, int H_out, int W_out, bool align_corners)

Public 2-D bilinear resize with autograd.

Thin wrapper that delegates to InterpolateBilinearBackward::forward.

Parameters

inputTensorImplPtr
4-D input tensor (N, C, H_in, W_in).
H_outint
Desired output height.
W_outint
Desired output width.
align_cornersbool
Coordinate mapping mode.

Returns

TensorImplPtr

Bilinearly resampled tensor of shape (N, C, H_out, W_out).