pub struct AnyOperation<'c> { /* private fields */ }
Expand description
An any
operation. Return any combination of the input shapes.
This operation takes multiple input shapes or extent tensors and returns some combination of their dimensions. This can be best seen with examples below.
The result is undefined, but still side-effect free, in cases where the inputs have differing ranks or differ in extents of shared dimensions.
Example:
%s0 = shape.any [2,?], [?,3] // [2,3]
%s1 = shape.any [?,?], [1,2] // [1,2]
Implementations§
source§impl<'c> AnyOperation<'c>
impl<'c> AnyOperation<'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>
) -> AnyOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> AnyOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn inputs(&self) -> impl Iterator<Item = Value<'c, '_>>
Trait Implementations§
source§impl<'c> From<AnyOperation<'c>> for Operation<'c>
impl<'c> From<AnyOperation<'c>> for Operation<'c>
source§fn from(operation: AnyOperation<'c>) -> Self
fn from(operation: AnyOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for AnyOperation<'c>
impl<'c> !Send for AnyOperation<'c>
impl<'c> !Sync for AnyOperation<'c>
impl<'c> Unpin for AnyOperation<'c>
impl<'c> UnwindSafe for AnyOperation<'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