pub struct BinaryParamDescriptor<const N: usize> {
pub kind: BinaryKind,
pub shape: [i32; N],
pub element: ElementKind,
pub param: f32,
}Expand description
Descriptor for a parameterized binary elementwise op.
Fields§
§kind: BinaryKindWhich parameterized binary op to apply.
shape: [i32; N]Tensor shape (shared by a / b / y).
element: ElementKindPrimary element type.
param: f32Op-specific scalar parameter. For Lerp, this is the broadcast
weight. Half-precision kernels do the arithmetic in f32; the
f64 kernel widens the f32 parameter losslessly.
Trait Implementations§
Source§impl<const N: usize> Clone for BinaryParamDescriptor<N>
impl<const N: usize> Clone for BinaryParamDescriptor<N>
Source§fn clone(&self) -> BinaryParamDescriptor<N>
fn clone(&self) -> BinaryParamDescriptor<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 BinaryParamDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for BinaryParamDescriptor<N>
impl<const N: usize> RefUnwindSafe for BinaryParamDescriptor<N>
impl<const N: usize> Send for BinaryParamDescriptor<N>
impl<const N: usize> Sync for BinaryParamDescriptor<N>
impl<const N: usize> Unpin for BinaryParamDescriptor<N>
impl<const N: usize> UnsafeUnpin for BinaryParamDescriptor<N>
impl<const N: usize> UnwindSafe for BinaryParamDescriptor<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