pub struct CriticalPathAttention { /* private fields */ }Implementations§
Source§impl CriticalPathAttention
impl CriticalPathAttention
pub fn new(config: CriticalPathConfig) -> Self
pub fn with_defaults() -> Self
Trait Implementations§
Source§impl DagAttention for CriticalPathAttention
impl DagAttention for CriticalPathAttention
Source§fn forward(&self, dag: &QueryDag) -> Result<AttentionScores, AttentionError>
fn forward(&self, dag: &QueryDag) -> Result<AttentionScores, AttentionError>
Compute attention scores for all nodes
Source§fn update(&mut self, dag: &QueryDag, execution_times: &HashMap<usize, f64>)
fn update(&mut self, dag: &QueryDag, execution_times: &HashMap<usize, f64>)
Update internal state after execution feedback
Source§fn complexity(&self) -> &'static str
fn complexity(&self) -> &'static str
Get computational complexity description
Auto Trait Implementations§
impl Freeze for CriticalPathAttention
impl RefUnwindSafe for CriticalPathAttention
impl Send for CriticalPathAttention
impl Sync for CriticalPathAttention
impl Unpin for CriticalPathAttention
impl UnsafeUnpin for CriticalPathAttention
impl UnwindSafe for CriticalPathAttention
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