pub enum Op {
Leaf,
Add {
a: TensorId,
b: TensorId,
},
Sub {
a: TensorId,
b: TensorId,
},
Mul {
a: TensorId,
b: TensorId,
},
Scale {
a: TensorId,
s: f32,
},
Relu {
a: TensorId,
},
Sigmoid {
a: TensorId,
},
Swish {
a: TensorId,
},
Tanh {
a: TensorId,
},
Matmul {
a: TensorId,
b: TensorId,
m: u32,
n: u32,
k: u32,
},
MseLoss {
pred: TensorId,
target: TensorId,
},
Conv2d {},
}Expand description
Recorded operation for backward pass.
Variants§
Leaf
Leaf tensor (parameter or input). No backward.
Add
Sub
Mul
Scale
Relu
Sigmoid
Swish
Tanh
Matmul
MseLoss
Conv2d
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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