pub fn tensor_to_arrayd<T>( t: Tensor, delete_batch_dim: bool, ) -> Result<ArrayD<T>>where T: WithDType,