pub enum DifferentiableOperation {
Show 15 variants
MatMul,
Add,
Mul,
Sub,
Div,
Activation {
function: ActivationFunction,
},
Loss {
function: LossFunction,
},
Normalization {
method: NormalizationMethod,
},
Convolution {
kernel_size: usize,
stride: usize,
padding: usize,
},
Pooling {
pool_type: PoolingType,
kernel_size: usize,
stride: usize,
},
Dropout {
rate: f64,
},
Reshape {
shape: Vec<usize>,
},
Concatenate {
axis: usize,
},
Slice {
start: usize,
end: usize,
axis: usize,
},
Custom {
name: String,
forward: fn(&[Array2<Float>]) -> Array2<Float>,
},
}Expand description
Differentiable operations
Variants§
MatMul
Matrix multiplication
Add
Element-wise addition
Mul
Element-wise multiplication
Sub
Element-wise subtraction
Div
Element-wise division
Activation
Activation functions
Fields
§
function: ActivationFunctionLoss
Loss functions
Fields
§
function: LossFunctionNormalization
Normalization
Fields
§
method: NormalizationMethodConvolution
Convolution
Pooling
Pooling
Dropout
Dropout
Reshape
Reshape
Concatenate
Concatenation
Slice
Slice
Custom
Custom operation
Trait Implementations§
Source§impl Clone for DifferentiableOperation
impl Clone for DifferentiableOperation
Source§fn clone(&self) -> DifferentiableOperation
fn clone(&self) -> DifferentiableOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DifferentiableOperation
impl RefUnwindSafe for DifferentiableOperation
impl Send for DifferentiableOperation
impl Sync for DifferentiableOperation
impl Unpin for DifferentiableOperation
impl UnwindSafe for DifferentiableOperation
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