pub fn diff_tensor_host( tensor: Tensor, order: usize, dim: Option<usize>, ) -> Result<Tensor, String>