pub trait TensorIndex<D: Dir> {
    type Txn: Transaction<D>;
    type Index: TensorInstance;

    fn argmax<'async_trait>(
        self,
        txn: Self::Txn,
        axis: usize
    ) -> Pin<Box<dyn Future<Output = TCResult<Self::Index>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; fn argmax_all<'async_trait>(
        self,
        txn: Self::Txn
    ) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }
Expand description

Tensor indexing operations

Required Associated Types

The type of Transaction to expect

The type of Tensor returned by argmax.

Required Methods

Return the indices of the maximum values in this Tensor along the given axis.

Return the offset of the maximum value in this Tensor.

Implementors