pub enum ExecutionMode {
Eager,
Graph,
Jit,
}Expand description
Execution mode for the backend.
Variants§
Eager
Eager execution: operations execute immediately as they’re called. This is the default mode and provides the best debugging experience.
Graph
Graph mode: operations are compiled into an optimized graph before execution. This mode enables graph-level optimizations like operation fusion and memory planning.
Jit
JIT mode: operations are compiled to native code at runtime. This mode provides the best performance but has compilation overhead. Currently not implemented.
Implementations§
Source§impl ExecutionMode
impl ExecutionMode
Sourcepub fn requires_compilation(&self) -> bool
pub fn requires_compilation(&self) -> bool
Returns true if this mode requires graph compilation.
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Returns a human-readable description of this mode.
Trait Implementations§
Source§impl Clone for ExecutionMode
impl Clone for ExecutionMode
Source§fn clone(&self) -> ExecutionMode
fn clone(&self) -> ExecutionMode
Returns a duplicate of the value. Read more
1.0.0 · 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 ExecutionMode
impl Debug for ExecutionMode
Source§impl Default for ExecutionMode
impl Default for ExecutionMode
Source§fn default() -> ExecutionMode
fn default() -> ExecutionMode
Returns the “default value” for a type. Read more
Source§impl Display for ExecutionMode
impl Display for ExecutionMode
Source§impl PartialEq for ExecutionMode
impl PartialEq for ExecutionMode
impl Copy for ExecutionMode
impl Eq for ExecutionMode
impl StructuralPartialEq for ExecutionMode
Auto Trait Implementations§
impl Freeze for ExecutionMode
impl RefUnwindSafe for ExecutionMode
impl Send for ExecutionMode
impl Sync for ExecutionMode
impl Unpin for ExecutionMode
impl UnwindSafe for ExecutionMode
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