pub struct SegmentSumDescriptor {
pub num_inputs: i32,
pub embedding_dim: i32,
pub num_segments: i32,
pub element: ElementKind,
}Expand description
Descriptor for a segment_sum op.
Fields§
§num_inputs: i32Number of input rows (length of segment_ids).
embedding_dim: i32Embedding / feature dim — second axis of input and output.
num_segments: i32Total number of segments — first axis of output. Output is
allocated for this many rows even when some segments are empty.
element: ElementKindValue element type.
Trait Implementations§
Source§impl Clone for SegmentSumDescriptor
impl Clone for SegmentSumDescriptor
Source§fn clone(&self) -> SegmentSumDescriptor
fn clone(&self) -> SegmentSumDescriptor
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 SegmentSumDescriptor
Auto Trait Implementations§
impl Freeze for SegmentSumDescriptor
impl RefUnwindSafe for SegmentSumDescriptor
impl Send for SegmentSumDescriptor
impl Sync for SegmentSumDescriptor
impl Unpin for SegmentSumDescriptor
impl UnsafeUnpin for SegmentSumDescriptor
impl UnwindSafe for SegmentSumDescriptor
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