pub struct Permutation;Expand description
Tensor permutation (axis shuffle + optional unary op):
B[mB] = α * op_a(A[mA]).
Implementations§
Source§impl Permutation
impl Permutation
Sourcepub unsafe fn new<'h>(
handle: &'h Handle,
a: &TensorDescriptor<'h>,
modes_a: &[i32],
op_a: UnaryOp,
b: &TensorDescriptor<'h>,
modes_b: &[i32],
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], compute_desc: *const c_void, ) -> Result<OperationDescriptor<'h>>
§Safety
compute_desc must be null or valid.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Permutation
impl RefUnwindSafe for Permutation
impl Send for Permutation
impl Sync for Permutation
impl Unpin for Permutation
impl UnsafeUnpin for Permutation
impl UnwindSafe for Permutation
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