pub struct LayerArrayConfig {
pub input_size: usize,
pub condition_size: usize,
pub channels: usize,
pub head_size: usize,
pub kernel_size: usize,
pub dilations: Vec<usize>,
pub activation: String,
pub gated: bool,
pub head_bias: bool,
}Expand description
Configuration for a single WaveNet layer-array (a stack of dilated layers sharing channel/kernel parameters).
Fields§
§input_size: usizeNumber of input channels into the array (1 for the first array).
condition_size: usizeConditioning signal width (1 for standard amp models).
channels: usizeHidden channel count.
head_size: usizeOutput channels of each layer’s head 1x1.
kernel_size: usizeDilated-convolution kernel size (typically 3).
dilations: Vec<usize>Per-layer dilation factors, e.g. [1, 2, 4, ..., 512].
activation: StringActivation function name, e.g. "Tanh".
gated: boolWhether the layer uses a gated activation (tanh * sigmoid).
head_bias: boolWhether the head 1x1 has a bias term.
Trait Implementations§
Source§impl Clone for LayerArrayConfig
impl Clone for LayerArrayConfig
Source§fn clone(&self) -> LayerArrayConfig
fn clone(&self) -> LayerArrayConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayerArrayConfig
impl Debug for LayerArrayConfig
Source§impl<'de> Deserialize<'de> for LayerArrayConfig
impl<'de> Deserialize<'de> for LayerArrayConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LayerArrayConfig
impl RefUnwindSafe for LayerArrayConfig
impl Send for LayerArrayConfig
impl Sync for LayerArrayConfig
impl Unpin for LayerArrayConfig
impl UnsafeUnpin for LayerArrayConfig
impl UnwindSafe for LayerArrayConfig
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