pub enum GraphOp {
}Expand description
Operation types in the computation graph
Variants§
Constant
Input/constant tensor
Add
Element-wise addition
Mul
Element-wise multiplication
Sub
Element-wise subtraction
Div
Element-wise division
MatMul
Matrix multiplication
Reshape(Vec<usize>)
Reshape operation
Transpose(usize, usize)
Transpose operation
Sum(Option<i32>)
Reduction sum
Mean(Option<i32>)
Reduction mean
ReLU
ReLU activation
Sigmoid
Sigmoid activation
Tanh
Tanh activation
AddScalar(f64)
Scalar addition
MulScalar(f64)
Scalar multiplication
Custom(String)
Custom operation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphOp
impl RefUnwindSafe for GraphOp
impl Send for GraphOp
impl Sync for GraphOp
impl Unpin for GraphOp
impl UnsafeUnpin for GraphOp
impl UnwindSafe for GraphOp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more