Skip to main content

interpolate3d

Function interpolate3d 

Source
pub fn interpolate3d<B: Backend>(
    input: Tensor<B, 5>,
    output_size: [usize; 3],
    options: InterpolateOptions,
) -> Tensor<B, 5>
Available on crate feature api only.
Expand description

Resize native [batch, channels, depth, height, width] activations.

Factors interpolation into native height/width and depth passes. Bilinear therefore applies linear interpolation in all three axes; cubic and Lanczos apply their existing filters separably. Both passes use the supplied corner alignment, without host resampling or detaching the gradient graph.