pub trait TensorPermitRead: Send + Sync {
    // Required method
    fn read_permit<'life0, 'async_trait>(
        &'life0 self,
        txn_id: TxnId,
        range: Range
    ) -> Pin<Box<dyn Future<Output = TCResult<SmallVec<[PermitRead<Range>; 16]>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Method to lock a tensor for reading.

Required Methods§

source

fn read_permit<'life0, 'async_trait>( &'life0 self, txn_id: TxnId, range: Range ) -> Pin<Box<dyn Future<Output = TCResult<SmallVec<[PermitRead<Range>; 16]>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Acquire a read lock on the given range of this tensor.

Implementors§

source§

impl<Cond, Then, OrElse> TensorPermitRead for DenseCond<Cond, Then, OrElse>

source§

impl<Cond, Then, OrElse> TensorPermitRead for SparseCond<Cond, Then, OrElse>

source§

impl<FE, S> TensorPermitRead for DenseCow<FE, S>
where FE: Send + Sync, S: TensorPermitRead,

source§

impl<FE, T> TensorPermitRead for DenseVersion<FE, T>
where FE: Send + Sync, T: CType + DType,

source§

impl<FE, T> TensorPermitRead for SparseVersion<FE, T>
where FE: Send + Sync, T: CType + DType,

source§

impl<FE, T, S> TensorPermitRead for SparseCow<FE, T, S>
where FE: Send + Sync, T: CType + DType, S: TensorPermitRead,

source§

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

source§

impl<L, R, T> TensorPermitRead for DenseCombine<L, R, T>

source§

impl<L, R, T> TensorPermitRead for SparseCombine<L, R, T>

source§

impl<L, R, T> TensorPermitRead for SparseCombineLeft<L, R, T>

source§

impl<L: TensorPermitRead, T: CType> TensorPermitRead for DenseConst<L, T>

source§

impl<S, T> TensorPermitRead for SparseCombineConst<S, T>
where S: TensorPermitRead, T: CType,

source§

impl<S: TensorInstance + TensorPermitRead + Debug> TensorPermitRead for DenseDiagonal<S>

source§

impl<S: TensorPermitRead + Debug> TensorPermitRead for DenseExpand<S>

source§

impl<S: TensorPermitRead + Debug> TensorPermitRead for DenseReshape<S>

source§

impl<S: TensorPermitRead + Debug> TensorPermitRead for SparseBroadcastAxis<S>

source§

impl<S: TensorPermitRead + Debug> TensorPermitRead for SparseExpand<S>

source§

impl<S: TensorPermitRead + Debug> TensorPermitRead for SparseReshape<S>

source§

impl<S: TensorPermitRead + Debug> TensorPermitRead for SparseTranspose<S>

source§

impl<S: TensorPermitRead> TensorPermitRead for DenseBroadcast<S>

source§

impl<S: TensorPermitRead> TensorPermitRead for DenseResizeBlocks<S>

source§

impl<S: TensorPermitRead> TensorPermitRead for DenseSlice<S>

source§

impl<S: TensorPermitRead> TensorPermitRead for DenseSparse<S>

source§

impl<S: TensorPermitRead> TensorPermitRead for DenseTranspose<S>

source§

impl<S: TensorPermitRead> TensorPermitRead for SparseSlice<S>

source§

impl<S: TensorPermitRead, T: CType> TensorPermitRead for DenseCombineConst<S, T>

source§

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

source§

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

source§

impl<S: TensorPermitRead, T: CType> TensorPermitRead for SparseUnary<S, T>

source§

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

source§

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

source§

impl<Txn, FE, T> TensorPermitRead for DenseCompareConst<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType,

source§

impl<Txn, FE, T> TensorPermitRead for DenseUnaryCast<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType,

source§

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

source§

impl<Txn, FE, T> TensorPermitRead for SparseCompare<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType,

source§

impl<Txn, FE, T> TensorPermitRead for SparseCompareConst<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType,

source§

impl<Txn, FE, T> TensorPermitRead for SparseCompareLeft<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType,

source§

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

source§

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

source§

impl<Txn, FE, T> TensorPermitRead for SparseUnaryCast<Txn, FE, T>
where Txn: ThreadSafe, FE: ThreadSafe, T: CType,

source§

impl<Txn: ThreadSafe, FE: ThreadSafe> TensorPermitRead for DenseAccessCast<Txn, FE>

source§

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

source§

impl<Txn: ThreadSafe, FE: ThreadSafe> TensorPermitRead for SparseAccessCast<Txn, FE>

source§

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

source§

impl<Txn: ThreadSafe, FE: ThreadSafe, T: CType> TensorPermitRead for DenseCompare<Txn, FE, T>