empty_like

Function empty_like 

Source
pub unsafe fn empty_like<Args, Inp>(
    param: Args,
) -> <Args as EmptyLikeAPI<Inp>>::Out
where Args: EmptyLikeAPI<Inp>,
Expand description

Uninitialized tensor with the same shape as an input tensor.

§Safety

This function is unsafe because it creates a tensor with uninitialized.

§See also