pub fn scale_2d(t: &Tensor, scale: &[f64]) -> Tensor
Scale the of vectors in 2d pictures.
t: Tensor - The tensor to scale [N, C, H, W] scale: &f64 - The scale factors (lenght == C)
Tensor - The scaled tensor [N, C, H, W]