pub struct TrinaryContraction;Expand description
A ternary contraction op: E[mE] = α·op_a(A)·op_b(B)·op_c(C) + β·op_d(D).
Implementations§
Source§impl TrinaryContraction
impl TrinaryContraction
Sourcepub unsafe fn new<'h>(
handle: &'h Handle,
a: &TensorDescriptor<'h>,
modes_a: &[i32],
b: &TensorDescriptor<'h>,
modes_b: &[i32],
c: &TensorDescriptor<'h>,
modes_c: &[i32],
d: &TensorDescriptor<'h>,
modes_d: &[i32],
e: &TensorDescriptor<'h>,
modes_e: &[i32],
compute_desc: *const c_void,
) -> Result<OperationDescriptor<'h>>
pub unsafe fn new<'h>( handle: &'h Handle, a: &TensorDescriptor<'h>, modes_a: &[i32], b: &TensorDescriptor<'h>, modes_b: &[i32], c: &TensorDescriptor<'h>, modes_c: &[i32], d: &TensorDescriptor<'h>, modes_d: &[i32], e: &TensorDescriptor<'h>, modes_e: &[i32], compute_desc: *const c_void, ) -> Result<OperationDescriptor<'h>>
§Safety
compute_desc must be null or a live cutensorComputeDescriptor_t.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrinaryContraction
impl RefUnwindSafe for TrinaryContraction
impl Send for TrinaryContraction
impl Sync for TrinaryContraction
impl Unpin for TrinaryContraction
impl UnsafeUnpin for TrinaryContraction
impl UnwindSafe for TrinaryContraction
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