pub struct ElementwiseBinary;Expand description
Elementwise binary op: D[mD] = (α * op_a(A[mA])) op_ac (γ * op_c(C[mC])).
Implementations§
Source§impl ElementwiseBinary
impl ElementwiseBinary
Sourcepub unsafe fn new<'h>(
handle: &'h Handle,
a: &TensorDescriptor<'h>,
modes_a: &[i32],
op_a: UnaryOp,
c: &TensorDescriptor<'h>,
modes_c: &[i32],
op_c: UnaryOp,
d: &TensorDescriptor<'h>,
modes_d: &[i32],
op_ac: BinaryOp,
compute_desc: *const c_void,
) -> Result<OperationDescriptor<'h>>
pub unsafe fn new<'h>( handle: &'h Handle, a: &TensorDescriptor<'h>, modes_a: &[i32], op_a: UnaryOp, c: &TensorDescriptor<'h>, modes_c: &[i32], op_c: UnaryOp, d: &TensorDescriptor<'h>, modes_d: &[i32], op_ac: BinaryOp, compute_desc: *const c_void, ) -> Result<OperationDescriptor<'h>>
§Safety
compute_desc must be null or valid.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ElementwiseBinary
impl RefUnwindSafe for ElementwiseBinary
impl Send for ElementwiseBinary
impl Sync for ElementwiseBinary
impl Unpin for ElementwiseBinary
impl UnsafeUnpin for ElementwiseBinary
impl UnwindSafe for ElementwiseBinary
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