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
type Dense: TensorInstance
type Dense: TensorInstance
A dense representation of this Tensor
type Sparse: TensorInstance
type Sparse: TensorInstance
A sparse representation of this Tensor
Required methods
fn into_dense(self) -> Self::Dense
fn into_dense(self) -> Self::Dense
Return a dense representation of this Tensor
.
fn into_sparse(self) -> Self::Sparse
fn into_sparse(self) -> Self::Sparse
Return a sparse representation of this Tensor
.