pub struct CompilationKey {
pub graph_hash: u64,
pub optimization_level: OptimizationLevel,
pub target_device: Option<String>,
}Expand description
Cache key for compiled graphs.
Fields§
§graph_hash: u64Hash of the graph structure
optimization_level: OptimizationLevelOptimization level used
target_device: Option<String>Target device (if specified)
Implementations§
Source§impl CompilationKey
impl CompilationKey
Sourcepub fn new(graph: &EinsumGraph, config: &CompilationConfig) -> Self
pub fn new(graph: &EinsumGraph, config: &CompilationConfig) -> Self
Create a key from a graph and config.
Trait Implementations§
Source§impl Clone for CompilationKey
impl Clone for CompilationKey
Source§fn clone(&self) -> CompilationKey
fn clone(&self) -> CompilationKey
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 CompilationKey
impl Debug for CompilationKey
Source§impl Hash for CompilationKey
impl Hash for CompilationKey
Source§impl PartialEq for CompilationKey
impl PartialEq for CompilationKey
impl Eq for CompilationKey
impl StructuralPartialEq for CompilationKey
Auto Trait Implementations§
impl Freeze for CompilationKey
impl RefUnwindSafe for CompilationKey
impl Send for CompilationKey
impl Sync for CompilationKey
impl Unpin for CompilationKey
impl UnwindSafe for CompilationKey
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