pub struct DenseLayerDesc {
pub input_size: usize,
pub output_size: usize,
pub weight_offset: usize,
pub bias_offset: usize,
pub activation: ActivationKind,
}Fields§
§input_size: usize§output_size: usize§weight_offset: usize§bias_offset: usize§activation: ActivationKindImplementations§
Source§impl DenseLayerDesc
impl DenseLayerDesc
pub fn weight_len(&self) -> Option<usize>
pub fn validate_ranges(&self, weights_len: usize, biases_len: usize) -> bool
Trait Implementations§
Source§impl Clone for DenseLayerDesc
impl Clone for DenseLayerDesc
Source§fn clone(&self) -> DenseLayerDesc
fn clone(&self) -> DenseLayerDesc
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 moreSource§impl Debug for DenseLayerDesc
impl Debug for DenseLayerDesc
Source§impl PartialEq for DenseLayerDesc
impl PartialEq for DenseLayerDesc
impl Copy for DenseLayerDesc
impl Eq for DenseLayerDesc
impl StructuralPartialEq for DenseLayerDesc
Auto Trait Implementations§
impl Freeze for DenseLayerDesc
impl RefUnwindSafe for DenseLayerDesc
impl Send for DenseLayerDesc
impl Sync for DenseLayerDesc
impl Unpin for DenseLayerDesc
impl UnsafeUnpin for DenseLayerDesc
impl UnwindSafe for DenseLayerDesc
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