pub struct E(/* private fields */);Expand description
An elementwise expression (a DAG over input tensors). Build it, then eval compiles + runs it.
Implementations§
Source§impl E
impl E
pub fn input(i: usize) -> E
pub fn scalar(s: f32) -> E
pub fn exp(&self) -> E
pub fn relu(&self) -> E
pub fn sigmoid(&self) -> E
pub fn silu(&self) -> E
pub fn neg(&self) -> E
pub fn add(&self, o: &E) -> E
pub fn sub(&self, o: &E) -> E
pub fn mul(&self, o: &E) -> E
pub fn div(&self, o: &E) -> E
pub fn max(&self, o: &E) -> E
Trait Implementations§
Auto Trait Implementations§
impl !Send for E
impl !Sync for E
impl Freeze for E
impl RefUnwindSafe for E
impl Unpin for E
impl UnsafeUnpin for E
impl UnwindSafe for E
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