pub enum DynamicOp {
MatMul,
Add,
Mul,
ReLU,
Sigmoid,
Conv2d {
kernel_size: (usize, usize),
stride: (usize, usize),
padding: (usize, usize),
},
Linear {
in_features: usize,
out_features: usize,
},
BatchNorm {
num_features: usize,
},
Dropout {
p: f64,
},
Reshape {
shape: Vec<usize>,
},
Custom(String),
}Expand description
Dynamic operation types for runtime execution 実行時動的演算タイプ
Variants§
MatMul
Matrix multiplication
Add
Element-wise addition
Mul
Element-wise multiplication
ReLU
ReLU activation
Sigmoid
Sigmoid activation
Conv2d
Convolution operation
Linear
Linear transformation
BatchNorm
Batch normalization
Dropout
Dropout
Reshape
Reshape operation
Custom(String)
Custom operation with name
Trait Implementations§
impl StructuralPartialEq for DynamicOp
Auto Trait Implementations§
impl Freeze for DynamicOp
impl RefUnwindSafe for DynamicOp
impl Send for DynamicOp
impl Sync for DynamicOp
impl Unpin for DynamicOp
impl UnsafeUnpin for DynamicOp
impl UnwindSafe for DynamicOp
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
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