Trait tc_tensor::TensorInstance[][src]

pub trait TensorInstance {
    type Dense: TensorInstance;
    type Sparse: TensorInstance;
    fn into_dense(self) -> Self::Dense;
fn into_sparse(self) -> Self::Sparse; }
Expand description

A Tensor instance

Associated Types

A dense representation of this Tensor

A sparse representation of this Tensor

Required methods

Return a dense representation of this Tensor.

Return a sparse representation of this Tensor.

Implementors