Function tch_utils::ops_2d::translate_2d

source ·
pub fn translate_2d(t: &Tensor, translation: &[f64]) -> Tensor
Expand description

Translate the of vectors in 2d pictures.

Arguments

t: Tensor - The tensor to translate [N, C, H, W] translation: &f64 - The translation factors (lenght == C)

Returns

Tensor - The translated tensor [N, C, H, W]