Skip to content
fn

interpolate_nearest_3d_op

→TensorImplPtr
int interpolate_nearest_3d_op(const int & input, int D_out, int H_out, int W_out)

Public 3-D nearest-neighbour resize with autograd.

Volumetric counterpart of interpolate_nearest_2d_op; produces a (N, C, D_out, H_out, W_out) output by floor-rounding source voxel coordinates. A backward node is attached.

Parameters

inputTensorImplPtr
5-D input tensor (N, C, D_in, H_in, W_in).
D_outint
Desired output depth.
H_outint
Desired output height.
W_outint
Desired output width.

Returns

TensorImplPtr

Resampled tensor of shape (N, C, D_out, H_out, W_out).