pub struct CompiledModel { /* private fields */ }Expand description
A compiled model or function.
Wraps traced computation with optimized execution.
Implementations§
Source§impl CompiledModel
impl CompiledModel
Sourcepub fn from_graph(graph: Graph, config: CompileConfig) -> JitResult<Self>
pub fn from_graph(graph: Graph, config: CompileConfig) -> JitResult<Self>
Creates a new compiled model from a graph.
Sourcepub fn input_names(&self) -> &[String]
pub fn input_names(&self) -> &[String]
Returns input names.
Sourcepub fn output_names(&self) -> &[String]
pub fn output_names(&self) -> &[String]
Returns output names.
Sourcepub fn optimized_graph(&self) -> &Graph
pub fn optimized_graph(&self) -> &Graph
Returns the optimized graph.
Sourcepub fn is_compiled(&self) -> bool
pub fn is_compiled(&self) -> bool
Checks if compilation succeeded.
Sourcepub fn stats(&self) -> CompileStats
pub fn stats(&self) -> CompileStats
Returns compilation statistics.
Auto Trait Implementations§
impl Freeze for CompiledModel
impl RefUnwindSafe for CompiledModel
impl Send for CompiledModel
impl Sync for CompiledModel
impl Unpin for CompiledModel
impl UnwindSafe for CompiledModel
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