pub struct EmbeddingBagMaxDescriptor {
pub num_embeddings: i32,
pub embedding_dim: i32,
pub num_bags: i32,
pub total_indices: i32,
pub padding_idx: Option<i32>,
pub element: ElementKind,
}Expand description
Descriptor for an embedding_bag Max-mode op.
Fields§
§num_embeddings: i32Vocabulary size — extent of weight along axis 0.
embedding_dim: i32Embedding dimension — extent of weight along axis 1.
num_bags: i32Number of bags — extent of offsets and of out, out_index
along axis 0.
total_indices: i32Total flat-index length — extent of indices.
padding_idx: Option<i32>Optional padding index. Indices matching p (or negative / OOB)
are dropped from the bag.
element: ElementKindValue element type.
Trait Implementations§
Source§impl Clone for EmbeddingBagMaxDescriptor
impl Clone for EmbeddingBagMaxDescriptor
Source§fn clone(&self) -> EmbeddingBagMaxDescriptor
fn clone(&self) -> EmbeddingBagMaxDescriptor
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 EmbeddingBagMaxDescriptor
Auto Trait Implementations§
impl Freeze for EmbeddingBagMaxDescriptor
impl RefUnwindSafe for EmbeddingBagMaxDescriptor
impl Send for EmbeddingBagMaxDescriptor
impl Sync for EmbeddingBagMaxDescriptor
impl Unpin for EmbeddingBagMaxDescriptor
impl UnsafeUnpin for EmbeddingBagMaxDescriptor
impl UnwindSafe for EmbeddingBagMaxDescriptor
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