pub enum NodeParams {
Conv2d {
weights: Vec<f32>,
bias: Option<Vec<f32>>,
in_channels: usize,
out_channels: usize,
kernel_size: usize,
},
BatchNorm {
gamma: Vec<f32>,
beta: Vec<f32>,
mean: Vec<f32>,
var: Vec<f32>,
eps: f32,
},
Activation,
Quantize {
scale: f32,
zero_point: i32,
},
Dequantize {
scale: f32,
zero_point: i32,
},
None,
}Expand description
Parameters for different node types
Variants§
Trait Implementations§
Source§impl Clone for NodeParams
impl Clone for NodeParams
Source§fn clone(&self) -> NodeParams
fn clone(&self) -> NodeParams
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 NodeParams
impl RefUnwindSafe for NodeParams
impl Send for NodeParams
impl Sync for NodeParams
impl Unpin for NodeParams
impl UnsafeUnpin for NodeParams
impl UnwindSafe for NodeParams
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