pub struct JitCompiler { /* private fields */ }Expand description
JIT compiler with runtime compilation and adaptive optimization.
Implementations§
Source§impl JitCompiler
impl JitCompiler
Sourcepub fn with_default_config() -> Self
pub fn with_default_config() -> Self
Create a JIT compiler with default configuration.
Sourcepub fn compile_or_retrieve(
&mut self,
graph: &EinsumGraph,
input_shapes: &[TensorShape],
) -> Result<CompiledGraph, ExecutorError>
pub fn compile_or_retrieve( &mut self, graph: &EinsumGraph, input_shapes: &[TensorShape], ) -> Result<CompiledGraph, ExecutorError>
Compile a graph or retrieve from cache.
Sourcepub fn record_execution(
&self,
graph: &EinsumGraph,
input_shapes: &[TensorShape],
duration: Duration,
)
pub fn record_execution( &self, graph: &EinsumGraph, input_shapes: &[TensorShape], duration: Duration, )
Record execution of a compiled graph.
Sourcepub fn optimize_hot_paths(&mut self) -> Result<usize, ExecutorError>
pub fn optimize_hot_paths(&mut self) -> Result<usize, ExecutorError>
Optimize hot paths based on profiling data.
Sourcepub fn cache_stats(&self) -> JitCacheStats
pub fn cache_stats(&self) -> JitCacheStats
Get JIT cache statistics.
Sourcepub fn clear_cache(&self)
pub fn clear_cache(&self)
Clear the JIT cache.
Auto Trait Implementations§
impl Freeze for JitCompiler
impl RefUnwindSafe for JitCompiler
impl Send for JitCompiler
impl Sync for JitCompiler
impl Unpin for JitCompiler
impl UnwindSafe for JitCompiler
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