pub struct FillDescriptor<T: Element> {
pub numel: i32,
pub value: T,
pub element: ElementKind,
}Expand description
Descriptor for a fill op.
value is consumed in-place by the launcher (no descriptor-time
dtype conversion). element must match T::KIND at select time.
Fields§
§numel: i32Number of elements to write.
value: TScalar to broadcast across the output. Same dtype as the output tensor (no internal conversion).
element: ElementKindOutput element type. Must equal T::KIND.
Trait Implementations§
Source§impl<T: Clone + Element> Clone for FillDescriptor<T>
impl<T: Clone + Element> Clone for FillDescriptor<T>
Source§fn clone(&self) -> FillDescriptor<T>
fn clone(&self) -> FillDescriptor<T>
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<T: Copy + Element> Copy for FillDescriptor<T>
Auto Trait Implementations§
impl<T> Freeze for FillDescriptor<T>where
T: Freeze,
impl<T> RefUnwindSafe for FillDescriptor<T>where
T: RefUnwindSafe,
impl<T> Send for FillDescriptor<T>where
T: Send,
impl<T> Sync for FillDescriptor<T>where
T: Sync,
impl<T> Unpin for FillDescriptor<T>where
T: Unpin,
impl<T> UnsafeUnpin for FillDescriptor<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for FillDescriptor<T>where
T: UnwindSafe,
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