Struct tch::nn::EmbeddingConfig
source · pub struct EmbeddingConfig {
pub sparse: bool,
pub scale_grad_by_freq: bool,
pub ws_init: Init,
pub padding_idx: i64,
}
Expand description
Configuration option for an embedding layer.
Fields§
§sparse: bool
§scale_grad_by_freq: bool
§ws_init: Init
§padding_idx: i64
Trait Implementations§
source§impl Clone for EmbeddingConfig
impl Clone for EmbeddingConfig
source§fn clone(&self) -> EmbeddingConfig
fn clone(&self) -> EmbeddingConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EmbeddingConfig
impl Debug for EmbeddingConfig
source§impl Default for EmbeddingConfig
impl Default for EmbeddingConfig
impl Copy for EmbeddingConfig
Auto Trait Implementations§
impl RefUnwindSafe for EmbeddingConfig
impl Send for EmbeddingConfig
impl Sync for EmbeddingConfig
impl Unpin for EmbeddingConfig
impl UnwindSafe for EmbeddingConfig
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