pub struct FusionChain {
pub expr: FusedExpr,
pub sources: Vec<Local>,
pub result_local: Local,
pub elem_c: String,
pub rank: u32,
pub eliminated_locals: Vec<Local>,
}Expand description
A fusion opportunity: a chain of element-wise ops that can be fused.
Fields§
§expr: FusedExprThe fused expression tree
sources: Vec<Local>Source array locals (in order of Source(0), Source(1), …)
result_local: LocalThe result local where the fused output is stored
elem_c: StringThe element type (C identifier, e.g. “double”)
rank: u32Rank of the ndarray
eliminated_locals: Vec<Local>Intermediate locals that can be eliminated after fusion
Trait Implementations§
Source§impl Clone for FusionChain
impl Clone for FusionChain
Source§fn clone(&self) -> FusionChain
fn clone(&self) -> FusionChain
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 moreAuto Trait Implementations§
impl Freeze for FusionChain
impl RefUnwindSafe for FusionChain
impl Send for FusionChain
impl Sync for FusionChain
impl Unpin for FusionChain
impl UnwindSafe for FusionChain
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