pub struct ChainStep {
pub op: ElementWiseOp,
pub operand: ChainOperand,
}Expand description
One step of a KernelPattern::ElementWiseChain: acc = acc <op> operand.
The accumulator is always on the left. A kernel that writes the
accumulator on the right of a Sub or a Div computes something this
cannot say, and the matcher refuses it rather than reordering the operands.
Fields§
§op: ElementWiseOpThe operation applied at this step.
operand: ChainOperandThe right-hand operand.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChainStep
impl RefUnwindSafe for ChainStep
impl Send for ChainStep
impl Sync for ChainStep
impl Unpin for ChainStep
impl UnsafeUnpin for ChainStep
impl UnwindSafe for ChainStep
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