pub struct CnnConfig {
pub n_stack: i64,
pub out_dim: i64,
pub skip_linear: bool,
}Expand description
Configuration of Cnn.
If skip_linear is true, out_dim is not used.
Fields§
§n_stack: i64§out_dim: i64§skip_linear: boolImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CnnConfig
impl<'de> Deserialize<'de> for CnnConfig
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
Source§impl OutDim for CnnConfig
impl OutDim for CnnConfig
Source§fn get_out_dim(&self) -> i64
fn get_out_dim(&self) -> i64
Gets output dimension.
Source§fn set_out_dim(&mut self, v: i64)
fn set_out_dim(&mut self, v: i64)
Sets output dimension.
impl StructuralPartialEq for CnnConfig
Auto Trait Implementations§
impl Freeze for CnnConfig
impl RefUnwindSafe for CnnConfig
impl Send for CnnConfig
impl Sync for CnnConfig
impl Unpin for CnnConfig
impl UnwindSafe for CnnConfig
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