pub enum LoweringMode {
Inference,
Training,
}Expand description
Whether a graph is being lowered for inference or training (training lowerings additionally wire up backward kernels).
Variants§
Trait Implementations§
Source§impl Clone for LoweringMode
impl Clone for LoweringMode
Source§fn clone(&self) -> LoweringMode
fn clone(&self) -> LoweringMode
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 LoweringMode
impl Debug for LoweringMode
Source§impl Default for LoweringMode
impl Default for LoweringMode
Source§fn default() -> LoweringMode
fn default() -> LoweringMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for LoweringMode
impl PartialEq for LoweringMode
Source§fn eq(&self, other: &LoweringMode) -> bool
fn eq(&self, other: &LoweringMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LoweringMode
impl Eq for LoweringMode
impl StructuralPartialEq for LoweringMode
Auto Trait Implementations§
impl Freeze for LoweringMode
impl RefUnwindSafe for LoweringMode
impl Send for LoweringMode
impl Sync for LoweringMode
impl Unpin for LoweringMode
impl UnsafeUnpin for LoweringMode
impl UnwindSafe for LoweringMode
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