pub struct RankOperation<'c> { /* private fields */ }
Expand description
A rank
operation. Rank operation.
The tensor.rank
operation takes a tensor operand and returns its rank.
Example:
%0 = tensor.rank %arg0 : tensor<*xf32>
%1 = tensor.rank %arg1 : tensor<?x?xf32>
Implementations§
Trait Implementations§
source§impl<'c> From<RankOperation<'c>> for Operation<'c>
impl<'c> From<RankOperation<'c>> for Operation<'c>
source§fn from(operation: RankOperation<'c>) -> Self
fn from(operation: RankOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for RankOperation<'c>
impl<'c> !Send for RankOperation<'c>
impl<'c> !Sync for RankOperation<'c>
impl<'c> Unpin for RankOperation<'c>
impl<'c> UnwindSafe for RankOperation<'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