Trait tc_tensor::TensorDualIO[][src]

pub trait TensorDualIO<D: Dir, O> {
    type Txn: Transaction<D>;
    fn mask<'async_trait>(
        self,
        txn: Self::Txn,
        value: O
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait
;
fn write<'async_trait>(
        self,
        txn: Self::Txn,
        bounds: Bounds,
        value: O
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }
Expand description

Tensor I/O operations which accept another Tensor as an argument

Associated Types

The type of Transaction to expect

Required methods

Zero out the elements of this Tensor where the corresponding element of value is nonzero.

Overwrite the slice of this Tensor given by Bounds with the given value.

Implementors