pub struct BinaryDescriptor<const N: usize> {
pub kind: BinaryKind,
pub shape: [i32; N],
pub element: ElementKind,
}Expand description
Descriptor for a binary elementwise op.
shape describes the output tensor shape (== both input shapes
after the caller-side rank-normalization convention — see the crate
docs for the broadcasting contract). element must match T::KIND
at select time.
Fields§
§kind: BinaryKindWhich binary op to apply.
shape: [i32; N]Output tensor shape (= a.shape = b.shape for the contig case).
element: ElementKindPrimary element type. Must match the type parameter T of the
containing plan.
Trait Implementations§
Source§impl<const N: usize> Clone for BinaryDescriptor<N>
impl<const N: usize> Clone for BinaryDescriptor<N>
Source§fn clone(&self) -> BinaryDescriptor<N>
fn clone(&self) -> BinaryDescriptor<N>
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<const N: usize> Copy for BinaryDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for BinaryDescriptor<N>
impl<const N: usize> RefUnwindSafe for BinaryDescriptor<N>
impl<const N: usize> Send for BinaryDescriptor<N>
impl<const N: usize> Sync for BinaryDescriptor<N>
impl<const N: usize> Unpin for BinaryDescriptor<N>
impl<const N: usize> UnsafeUnpin for BinaryDescriptor<N>
impl<const N: usize> UnwindSafe for BinaryDescriptor<N>
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