pub struct JITGraphLayer {
pub base_layer: Box<dyn GraphLayer>,
pub compiler: GraphJITCompiler,
pub compiled_ops: HashMap<String, CompiledKernel>,
pub jit_enabled: bool,
}Expand description
JIT-optimized graph layer that automatically compiles operations
Fields§
§base_layer: Box<dyn GraphLayer>Underlying layer implementation
compiler: GraphJITCompilerJIT compiler instance
compiled_ops: HashMap<String, CompiledKernel>Cached compiled operations
jit_enabled: boolEnable/disable JIT compilation
Implementations§
Source§impl JITGraphLayer
impl JITGraphLayer
Sourcepub fn new(base_layer: Box<dyn GraphLayer>) -> Self
pub fn new(base_layer: Box<dyn GraphLayer>) -> Self
Create a new JIT-optimized layer
Sourcepub fn set_jit_enabled(&mut self, enabled: bool)
pub fn set_jit_enabled(&mut self, enabled: bool)
Enable or disable JIT compilation
Trait Implementations§
Source§impl Debug for JITGraphLayer
impl Debug for JITGraphLayer
Source§impl GraphLayer for JITGraphLayer
impl GraphLayer for JITGraphLayer
Auto Trait Implementations§
impl Freeze for JITGraphLayer
impl !RefUnwindSafe for JITGraphLayer
impl !Send for JITGraphLayer
impl !Sync for JITGraphLayer
impl Unpin for JITGraphLayer
impl UnsafeUnpin for JITGraphLayer
impl !UnwindSafe for JITGraphLayer
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> 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