pub enum NeuralOperation<T> {
MatrixMultiply {
a_rows: usize,
a_cols: usize,
b_cols: usize,
_phantom: PhantomData<T>,
},
VectorAdd {
size: usize,
_phantom: PhantomData<T>,
},
ActivationFunction {
function: ActivationFunction,
size: usize,
_phantom: PhantomData<T>,
},
Convolution {
channels: usize,
kernel_size: usize,
stride: usize,
_phantom: PhantomData<T>,
},
ForwardPropagation {
layer_sizes: Vec<usize>,
_phantom: PhantomData<T>,
},
BackwardPropagation {
layer_sizes: Vec<usize>,
_phantom: PhantomData<T>,
},
Custom {
kernel_source: String,
name: String,
_phantom: PhantomData<T>,
},
}
Expand description
Neural operation types
Variants§
MatrixMultiply
VectorAdd
ActivationFunction
Convolution
ForwardPropagation
BackwardPropagation
Custom
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for NeuralOperation<T>
impl<T: Clone> Clone for NeuralOperation<T>
Source§fn clone(&self) -> NeuralOperation<T>
fn clone(&self) -> NeuralOperation<T>
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<T> Freeze for NeuralOperation<T>
impl<T> RefUnwindSafe for NeuralOperation<T>where
T: RefUnwindSafe,
impl<T> Send for NeuralOperation<T>where
T: Send,
impl<T> Sync for NeuralOperation<T>where
T: Sync,
impl<T> Unpin for NeuralOperation<T>where
T: Unpin,
impl<T> UnwindSafe for NeuralOperation<T>where
T: UnwindSafe,
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