pub enum CompileMode {
Inference,
Differentiable,
NoCache,
}Expand description
Compilation mode affects caching behavior.
Variants§
Inference
Full caching: skip nodes whose outputs are cached.
Differentiable
Cache states only: re-execute forwards for gradient flow.
NoCache
No caching at all: force re-execution of everything.
Trait Implementations§
Source§impl Clone for CompileMode
impl Clone for CompileMode
Source§fn clone(&self) -> CompileMode
fn clone(&self) -> CompileMode
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 CompileMode
impl Debug for CompileMode
Source§impl PartialEq for CompileMode
impl PartialEq for CompileMode
impl Copy for CompileMode
impl Eq for CompileMode
impl StructuralPartialEq for CompileMode
Auto Trait Implementations§
impl Freeze for CompileMode
impl RefUnwindSafe for CompileMode
impl Send for CompileMode
impl Sync for CompileMode
impl Unpin for CompileMode
impl UnsafeUnpin for CompileMode
impl UnwindSafe for CompileMode
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