empty

Function empty 

Source
pub fn empty<T: Scalar>(shape: &[usize]) -> Tensor<T>
Expand description

Creates an uninitialized tensor (values are undefined).

§Safety

The tensor contents are uninitialized. Reading before writing is undefined.

§Arguments

  • shape - Shape of the tensor