pub trait TensorInstance: ThreadSafe + Sized {
    // Required methods
    fn dtype(&self) -> NumberType;
    fn shape(&self) -> &Shape;

    // Provided methods
    fn ndim(&self) -> usize { ... }
    fn size(&self) -> u64 { ... }
    fn schema(&self) -> Schema { ... }
}
Expand description

A Tensor instance

Required Methods§

source

fn dtype(&self) -> NumberType

source

fn shape(&self) -> &Shape

Provided Methods§

source

fn ndim(&self) -> usize

source

fn size(&self) -> u64

source

fn schema(&self) -> Schema

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: TensorInstance> TensorInstance for Box<T>

source§

fn dtype(&self) -> NumberType

source§

fn shape(&self) -> &Shape

Implementors§

source§

impl<Cond, Then, OrElse> TensorInstance for DenseCond<Cond, Then, OrElse>
where Cond: TensorInstance, Then: TensorInstance, OrElse: TensorInstance,

source§

impl<Cond, Then, OrElse> TensorInstance for SparseCond<Cond, Then, OrElse>
where Cond: TensorInstance, Then: TensorInstance, OrElse: TensorInstance,

source§

impl<FE, S> TensorInstance for DenseCow<FE, S>
where FE: ThreadSafe, S: TensorInstance,

source§

impl<FE, T> TensorInstance for DenseVersion<FE, T>
where FE: ThreadSafe, T: DType + ThreadSafe,

source§

impl<FE, T> TensorInstance for SparseVersion<FE, T>
where FE: ThreadSafe, T: CType + DType,

source§

impl<FE, T, S> TensorInstance for SparseCow<FE, T, S>
where FE: ThreadSafe, T: CType + DType, S: TensorInstance,

source§

impl<L, R> TensorInstance for DenseMatMul<L, R>

source§

impl<L, R, T> TensorInstance for DenseCombine<L, R, T>
where L: TensorInstance, R: TensorInstance, T: DType + CType,

source§

impl<L, R, T> TensorInstance for SparseCombine<L, R, T>
where L: TensorInstance, R: TensorInstance, T: CType + DType,

source§

impl<L, R, T> TensorInstance for SparseCombineLeft<L, R, T>
where L: TensorInstance, R: TensorInstance, T: CType + DType,

source§

impl<L, T> TensorInstance for DenseConst<L, T>
where L: TensorInstance, T: CType + DType,

source§

impl<S> TensorInstance for SparseSlice<S>
where S: TensorInstance,

source§

impl<S> TensorInstance for SparseTranspose<S>
where S: TensorInstance,

source§

impl<S, T> TensorInstance for SparseCombineConst<S, T>
where S: TensorInstance, T: CType + DType,

source§

impl<S: TensorInstance> TensorInstance for DenseBroadcast<S>

source§

impl<S: TensorInstance> TensorInstance for DenseDiagonal<S>

source§

impl<S: TensorInstance> TensorInstance for DenseExpand<S>

source§

impl<S: TensorInstance> TensorInstance for DenseReshape<S>

source§

impl<S: TensorInstance> TensorInstance for DenseResizeBlocks<S>

source§

impl<S: TensorInstance> TensorInstance for DenseSlice<S>

source§

impl<S: TensorInstance> TensorInstance for DenseSparse<S>

source§

impl<S: TensorInstance> TensorInstance for DenseTranspose<S>

source§

impl<S: TensorInstance> TensorInstance for SparseBroadcastAxis<S>

source§

impl<S: TensorInstance> TensorInstance for SparseExpand<S>

source§

impl<S: TensorInstance> TensorInstance for SparseReshape<S>

source§

impl<S: TensorInstance, T: CType + DType> TensorInstance for DenseCombineConst<S, T>

source§

impl<S: TensorInstance, T: CType + DType> TensorInstance for SparseUnary<S, T>

source§

impl<S: TensorInstance, T: CType> TensorInstance for DenseReduce<S, T>

source§

impl<S: TensorInstance, T: CType> TensorInstance for DenseUnary<S, T>

source§

impl<Txn, FE> TensorInstance for DenseBase<Txn, FE>
where Txn: ThreadSafe, FE: ThreadSafe,

source§

impl<Txn, FE> TensorInstance for SparseBase<Txn, FE>
where Txn: ThreadSafe, FE: ThreadSafe,

source§

impl<Txn, FE, A> TensorInstance for DenseTensor<Txn, FE, A>
where Txn: ThreadSafe, FE: ThreadSafe, A: TensorInstance,

source§

impl<Txn, FE, A> TensorInstance for SparseTensor<Txn, FE, A>
where Txn: ThreadSafe, FE: ThreadSafe, A: TensorInstance,

source§

impl<Txn, FE, T> TensorInstance for DenseAccess<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType + DType,

source§

impl<Txn, FE, T> TensorInstance for SparseAccess<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType + DType,

source§

impl<Txn, FE, T> TensorInstance for DenseCompare<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType + DType,

source§

impl<Txn, FE, T> TensorInstance for DenseCompareConst<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType + DType,

source§

impl<Txn, FE, T> TensorInstance for DenseUnaryCast<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType + DType,

source§

impl<Txn, FE, T> TensorInstance for SparseBroadcast<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType + DType,

source§

impl<Txn, FE, T> TensorInstance for SparseCompare<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType + DType,

source§

impl<Txn, FE, T> TensorInstance for SparseCompareConst<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType + DType,

source§

impl<Txn, FE, T> TensorInstance for SparseCompareLeft<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType + DType,

source§

impl<Txn, FE, T> TensorInstance for SparseDense<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType + DType,

source§

impl<Txn, FE, T> TensorInstance for SparseReduce<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType + DType,

source§

impl<Txn, FE, T> TensorInstance for SparseUnaryCast<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType + DType,

source§

impl<Txn: ThreadSafe, FE: ThreadSafe> TensorInstance for DenseView<Txn, FE>

source§

impl<Txn: ThreadSafe, FE: ThreadSafe> TensorInstance for Dense<Txn, FE>

source§

impl<Txn: ThreadSafe, FE: ThreadSafe> TensorInstance for Sparse<Txn, FE>

source§

impl<Txn: ThreadSafe, FE: ThreadSafe> TensorInstance for Tensor<Txn, FE>

source§

impl<Txn: ThreadSafe, FE: ThreadSafe> TensorInstance for TensorBase<Txn, FE>

source§

impl<Txn: ThreadSafe, FE: ThreadSafe> TensorInstance for SparseView<Txn, FE>