pub struct EmbeddingBackwardDescriptor {
pub num_embeddings: i32,
pub embedding_dim: i32,
pub num_indices: i32,
pub padding_idx: Option<i32>,
pub element: ElementKind,
}Expand description
Descriptor for an embedding_backward op.
Fields§
§num_embeddings: i32Vocabulary size — extent of dweight along axis 0.
embedding_dim: i32Embedding dimension — extent of dweight along axis 1.
num_indices: i32Number of indices — extent of indices and of dout along axis 0.
padding_idx: Option<i32>Optional padding index. When Some(p), rows where
indices[n] == p are skipped (no contribution).
element: ElementKindValue element type.
Trait Implementations§
Source§impl Clone for EmbeddingBackwardDescriptor
impl Clone for EmbeddingBackwardDescriptor
Source§fn clone(&self) -> EmbeddingBackwardDescriptor
fn clone(&self) -> EmbeddingBackwardDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EmbeddingBackwardDescriptor
Auto Trait Implementations§
impl Freeze for EmbeddingBackwardDescriptor
impl RefUnwindSafe for EmbeddingBackwardDescriptor
impl Send for EmbeddingBackwardDescriptor
impl Sync for EmbeddingBackwardDescriptor
impl Unpin for EmbeddingBackwardDescriptor
impl UnsafeUnpin for EmbeddingBackwardDescriptor
impl UnwindSafe for EmbeddingBackwardDescriptor
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