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: i64Trait 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 more