pub struct ScalarWeightClassifierConfig {
pub hidden_size: i64,
pub input_size: i64,
pub n_layers: i64,
pub n_labels: i64,
pub layer_dropout_prob: f64,
pub dropout_prob: f64,
pub layer_norm_eps: f64,
}Expand description
Configuration for the scalar weight classifier.
Fields§
Size of the hidden layer.
input_size: i64Size of the input to the classification layer.
n_layers: i64Number of layers to weigh.
n_labels: i64Number of labels.
layer_dropout_prob: f64The probability of excluding a layer from scalar weighting.
dropout_prob: f64Hidden layer dropout probability.
layer_norm_eps: f64Layer norm epsilon.
Auto Trait Implementations§
impl Freeze for ScalarWeightClassifierConfig
impl RefUnwindSafe for ScalarWeightClassifierConfig
impl Send for ScalarWeightClassifierConfig
impl Sync for ScalarWeightClassifierConfig
impl Unpin for ScalarWeightClassifierConfig
impl UnwindSafe for ScalarWeightClassifierConfig
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more