pub struct TransposeOperation<'c> { /* private fields */ }
Expand description
A transpose
operation. transpose
produces a new strided memref (metadata-only).
The transpose
op produces a strided memref whose sizes and strides
are a permutation of the original in
memref. This is purely a metadata
transformation.
Example:
%1 = memref.transpose %0 (i, j) -> (j, i) : memref<?x?xf32> to memref<?x?xf32, affine_map<(d0, d1)[s0] -> (d1 * s0 + d0)>>
Implementations§
source§impl<'c> TransposeOperation<'c>
impl<'c> TransposeOperation<'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>
) -> TransposeOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> TransposeOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn in(&self) -> Result<Value<'c, '_>, Error>
pub fn permutation(&self) -> Result<Attribute<'c>, Error>
pub fn set_permutation(&mut self, value: Attribute<'c>)
Trait Implementations§
source§impl<'c> From<TransposeOperation<'c>> for Operation<'c>
impl<'c> From<TransposeOperation<'c>> for Operation<'c>
source§fn from(operation: TransposeOperation<'c>) -> Self
fn from(operation: TransposeOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for TransposeOperation<'c>
impl<'c> !Send for TransposeOperation<'c>
impl<'c> !Sync for TransposeOperation<'c>
impl<'c> Unpin for TransposeOperation<'c>
impl<'c> UnwindSafe for TransposeOperation<'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