pub enum Macro {
Multiply {
left: Wire,
right: Wire,
},
Select {
gate: Wire,
off: Wire,
on: Wire,
},
}Expand description
The builder operation a wire came from, so the backward pass can differentiate the whole product or select instead of its ReLUs one by one.
Variants§
Trait Implementations§
impl Copy for Macro
impl Eq for Macro
impl StructuralPartialEq for Macro
Auto Trait Implementations§
impl Freeze for Macro
impl RefUnwindSafe for Macro
impl Send for Macro
impl Sync for Macro
impl Unpin for Macro
impl UnsafeUnpin for Macro
impl UnwindSafe for Macro
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