pub trait TensorIO<D: Dir> {
    type Txn: Transaction<D>;

    fn read_value<'async_trait>(
        self,
        txn: Self::Txn,
        coord: Coord
    ) -> Pin<Box<dyn Future<Output = TCResult<Number>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; fn write_value<'life0, 'async_trait>(
        &'life0 self,
        txn_id: TxnId,
        bounds: Bounds,
        value: Number
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn write_value_at<'life0, 'async_trait>(
        &'life0 self,
        txn_id: TxnId,
        coord: Coord,
        value: Number
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Tensor I/O operations

Required Associated Types

The type of Transaction to expect

Required Methods

Read a single value from this Tensor.

Write a single value to the slice of this Tensor with the given Bounds.

Overwrite a single element of this Tensor.

Implementors