Struct rust_bert::xlnet::XLNetConfig [−][src]
XLNet model configuration
Defines the XLNet model architecture (e.g. number of layers, hidden layer size, label mapping...)
Fields
vocab_size: i64
d_model: i64
n_layer: i64
d_head: i64
n_head: i64
d_inner: i64
ff_activation: Activation
untie_r: bool
attn_type: AttentionType
initializer_range: f32
layer_norm_eps: Option<f64>
dropout: f64
mem_len: Option<i64>
reuse_len: Option<i64>
clamp_len: Option<i64>
bi_data: bool
same_length: bool
summary_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: i64
eos_token_id: i64
pad_token_id: i64
id2label: 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]
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]
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
impl Send for XLNetConfig
impl Sync for XLNetConfig
impl Unpin for XLNetConfig
impl UnwindSafe for XLNetConfig
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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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>,