pub enum ExtensionStandardLowering {
Lowered(Vec<ValueRef<StdTensorOp>>),
Unsupported,
}Expand description
Typed result of trying to lower an extension into standard tensor ops.
Callers branch on this enum instead of encoding unsupported capability as a successful empty sentinel.
§Examples
use tenferro_ops::ext_op::ExtensionStandardLowering;
let outcome = ExtensionStandardLowering::Unsupported;
assert!(matches!(outcome, ExtensionStandardLowering::Unsupported));Variants§
Lowered(Vec<ValueRef<StdTensorOp>>)
The extension emitted standard tensor graph outputs.
Unsupported
The extension has no standard-op lowering for the supplied metadata.
Trait Implementations§
Source§impl Clone for ExtensionStandardLowering
impl Clone for ExtensionStandardLowering
Source§fn clone(&self) -> ExtensionStandardLowering
fn clone(&self) -> ExtensionStandardLowering
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExtensionStandardLowering
impl Debug for ExtensionStandardLowering
Source§impl PartialEq for ExtensionStandardLowering
impl PartialEq for ExtensionStandardLowering
Source§fn eq(&self, other: &ExtensionStandardLowering) -> bool
fn eq(&self, other: &ExtensionStandardLowering) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExtensionStandardLowering
impl StructuralPartialEq for ExtensionStandardLowering
Auto Trait Implementations§
impl Freeze for ExtensionStandardLowering
impl !RefUnwindSafe for ExtensionStandardLowering
impl Send for ExtensionStandardLowering
impl Sync for ExtensionStandardLowering
impl Unpin for ExtensionStandardLowering
impl UnsafeUnpin for ExtensionStandardLowering
impl !UnwindSafe for ExtensionStandardLowering
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,
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