pub trait TensorCompare<O> {
    type Compare: TensorInstance;
    type Dense: TensorInstance;

    fn eq(self, other: O) -> TCResult<Self::Dense>;
    fn gt(self, other: O) -> TCResult<Self::Compare>;
    fn gte(self, other: O) -> TCResult<Self::Dense>;
    fn lt(self, other: O) -> TCResult<Self::Compare>;
    fn lte(self, other: O) -> TCResult<Self::Dense>;
    fn ne(self, other: O) -> TCResult<Self::Compare>;
}
Expand description

Tensor comparison operations

Required Associated Types

The result of a comparison operation

The result of a comparison operation which can only return a dense Tensor

Required Methods

Element-wise equality

Element-wise greater-than

Element-wise greater-or-equal

Element-wise less-than

Element-wise less-or-equal

Element-wise not-equal

Implementors