pub struct ElementwiseTrinary;Expand description
Elementwise trinary op:
D[mD] = ((α * op_a(A) op_ab β * op_b(B)) op_abc γ * op_c(C)).
Implementations§
Source§impl ElementwiseTrinary
impl ElementwiseTrinary
Sourcepub unsafe fn new<'h>(
handle: &'h Handle,
a: &TensorDescriptor<'h>,
modes_a: &[i32],
op_a: UnaryOp,
b: &TensorDescriptor<'h>,
modes_b: &[i32],
op_b: UnaryOp,
c: &TensorDescriptor<'h>,
modes_c: &[i32],
op_c: UnaryOp,
d: &TensorDescriptor<'h>,
modes_d: &[i32],
op_ab: BinaryOp,
op_abc: 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, b: &TensorDescriptor<'h>, modes_b: &[i32], op_b: UnaryOp, c: &TensorDescriptor<'h>, modes_c: &[i32], op_c: UnaryOp, d: &TensorDescriptor<'h>, modes_d: &[i32], op_ab: BinaryOp, op_abc: 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 ElementwiseTrinary
impl RefUnwindSafe for ElementwiseTrinary
impl Send for ElementwiseTrinary
impl Sync for ElementwiseTrinary
impl Unpin for ElementwiseTrinary
impl UnsafeUnpin for ElementwiseTrinary
impl UnwindSafe for ElementwiseTrinary
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