pub enum MetadataReductionOp {
Sum,
All,
Any,
}Expand description
Integer/bool metadata reduction operations.
§Examples
use tenferro_prims::MetadataReductionOp;
let op = MetadataReductionOp::Sum;
assert_eq!(op, MetadataReductionOp::Sum);Variants§
Sum
Sum metadata values into the output tensor.
All
Logical all-reduction over bool-like metadata tensors.
Any
Logical any-reduction over bool-like metadata tensors.
Trait Implementations§
Source§impl Clone for MetadataReductionOp
impl Clone for MetadataReductionOp
Source§fn clone(&self) -> MetadataReductionOp
fn clone(&self) -> MetadataReductionOp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetadataReductionOp
impl Debug for MetadataReductionOp
Source§impl Hash for MetadataReductionOp
impl Hash for MetadataReductionOp
Source§impl PartialEq for MetadataReductionOp
impl PartialEq for MetadataReductionOp
impl Copy for MetadataReductionOp
impl Eq for MetadataReductionOp
impl StructuralPartialEq for MetadataReductionOp
Auto Trait Implementations§
impl Freeze for MetadataReductionOp
impl RefUnwindSafe for MetadataReductionOp
impl Send for MetadataReductionOp
impl Sync for MetadataReductionOp
impl Unpin for MetadataReductionOp
impl UnwindSafe for MetadataReductionOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more