pub enum MaterializeReason {
MultipleUses,
Explicit,
ControlFlow,
}Expand description
Why a tensor was materialized.
Variants§
MultipleUses
Used by multiple consumers.
Explicit
Explicitly requested by programmer.
ControlFlow
Required for control flow.
Trait Implementations§
Source§impl Clone for MaterializeReason
impl Clone for MaterializeReason
Source§fn clone(&self) -> MaterializeReason
fn clone(&self) -> MaterializeReason
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 MaterializeReason
impl Debug for MaterializeReason
Source§impl<'de> Deserialize<'de> for MaterializeReason
impl<'de> Deserialize<'de> for MaterializeReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MaterializeReason
impl RefUnwindSafe for MaterializeReason
impl Send for MaterializeReason
impl Sync for MaterializeReason
impl Unpin for MaterializeReason
impl UnsafeUnpin for MaterializeReason
impl UnwindSafe for MaterializeReason
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