Skip to main content

get_dtype

Function get_dtype 

Source
pub fn get_dtype(tensor: &Tensor) -> Kind
Expand description

Helper for getting tensor dtype (Tch uses kind())