pub struct ReduceAnyOperation<'c> { /* private fields */ }
Expand description
A reduce_any
operation. Reduce Any operator.
Reduce a tensor along the given axis with a logical OR operation
Implementations§
source§impl<'c> ReduceAnyOperation<'c>
impl<'c> ReduceAnyOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> ReduceAnyOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ReduceAnyOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn output(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn input(&self) -> Result<Value<'c, '_>, Error>
pub fn axis(&self) -> Result<IntegerAttribute<'c>, Error>
pub fn set_axis(&mut self, value: IntegerAttribute<'c>)
Trait Implementations§
source§impl<'c> From<ReduceAnyOperation<'c>> for Operation<'c>
impl<'c> From<ReduceAnyOperation<'c>> for Operation<'c>
source§fn from(operation: ReduceAnyOperation<'c>) -> Self
fn from(operation: ReduceAnyOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ReduceAnyOperation<'c>
impl<'c> !Send for ReduceAnyOperation<'c>
impl<'c> !Sync for ReduceAnyOperation<'c>
impl<'c> Unpin for ReduceAnyOperation<'c>
impl<'c> UnwindSafe for ReduceAnyOperation<'c>
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