[−][src]Struct rust_bert::xlnet::XLNetConfig
XLNet model configuration
Defines the XLNet model architecture (e.g. number of layers, hidden layer size, label mapping...)
Fields
vocab_size: i64d_model: i64n_layer: i64d_head: i64n_head: i64d_inner: i64ff_activation: Activationuntie_r: boolattn_type: AttentionTypeinitializer_range: f32layer_norm_eps: Option<f64>dropout: f64mem_len: Option<i64>reuse_len: Option<i64>clamp_len: Option<i64>bi_data: boolsame_length: boolsummary_type: Option<SummaryType>summary_use_proj: Option<bool>summary_activation: Option<Activation>summary_proj_to_labels: Option<bool>summary_first_dropout: Option<f64>summary_last_dropout: Option<f64>start_n_top: Option<i64>end_n_top: Option<i64>use_cache: Option<bool>bos_token_id: i64eos_token_id: i64pad_token_id: i64id2label: Option<HashMap<i64, String>>label2id: Option<HashMap<String, i64>>output_attentions: Option<bool>chunk_size_feed_forward: Option<i64>Trait Implementations
impl Clone for XLNetConfig[src]
pub fn clone(&self) -> XLNetConfig[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Config<XLNetConfig> for XLNetConfig[src]
impl Debug for XLNetConfig[src]
impl<'de> Deserialize<'de> for XLNetConfig[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Serialize for XLNetConfig[src]
Auto Trait Implementations
impl RefUnwindSafe for XLNetConfig[src]
impl Send for XLNetConfig[src]
impl Sync for XLNetConfig[src]
impl Unpin for XLNetConfig[src]
impl UnwindSafe for XLNetConfig[src]
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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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.
pub 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.
pub 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>,