Struct rust_bert::pipelines::sentence_embeddings::layers::DenseConfig
source · pub struct DenseConfig {
pub in_features: i64,
pub out_features: i64,
pub bias: bool,
pub activation_function: Activation,
}Expand description
Configuration for Dense layer.
Fields§
§in_features: i64Size of the input dimension
out_features: i64Output size
bias: boolAdd a bias vector
activation_function: ActivationActivation function applied on output
Trait Implementations§
source§impl Config for DenseConfig
impl Config for DenseConfig
source§impl Debug for DenseConfig
impl Debug for DenseConfig
source§impl<'de> Deserialize<'de> for DenseConfig
impl<'de> Deserialize<'de> for DenseConfig
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 RefUnwindSafe for DenseConfig
impl Send for DenseConfig
impl Sync for DenseConfig
impl Unpin for DenseConfig
impl UnwindSafe for DenseConfig
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