pub fn safe_zeros( shape: &[i64], kind_device: (Kind, Device), ) -> Result<Tensor, Error>
Safely allocate a tensor (zeros, ones, randn, etc.)
Wraps tensor allocation operations that might OOM.