Trait tc_tensor::TensorCompare
source · 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§
sourcetype Compare: TensorInstance
type Compare: TensorInstance
The result of a comparison operation
sourcetype Dense: TensorInstance
type Dense: TensorInstance
The result of a comparison operation which can only return a dense Tensor