[−][src]Struct rust_bert::t5::T5Config
T5 model configuration
Defines the T5 model architecture (e.g. number of layers, hidden layer size, label mapping...)
Fields
dropout_rate: f64d_model: i64d_ff: i64d_kv: i64decoder_start_token_id: Option<i64>eos_token_id: Option<i64>initializer_factor: f64is_encoder_decoder: Option<bool>layer_norm_epsilon: f64n_positions: i64num_heads: i64num_layers: i64output_past: Option<bool>pad_token_id: Option<i64>relative_attention_num_buckets: i64vocab_size: i64Trait Implementations
impl Config<T5Config> for T5Config[src]
impl Debug for T5Config[src]
impl<'de> Deserialize<'de> for T5Config[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Serialize for T5Config[src]
Auto Trait Implementations
impl RefUnwindSafe for T5Config
impl Send for T5Config
impl Sync for T5Config
impl Unpin for T5Config
impl UnwindSafe for T5Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,