pub struct TransposeDescriptor<'a, T> {
pub input: &'a [T],
pub output: &'a mut [T],
pub shape: &'a [usize],
pub perm: &'a [usize],
pub order: MemoryOrder,
pub conj: bool,
pub policy: ExecPolicy,
}Expand description
Transpose operation descriptor
Fields§
§input: &'a [T]Input tensor in shape order.
output: &'a mut [T]Output buffer receiving the permuted tensor.
shape: &'a [usize]Shape of the input tensor.
perm: &'a [usize]Axis permutation: output axis i is input axis perm[i].
order: MemoryOrderMemory layout of the input / output slices.
conj: boolApply element-wise complex conjugation during transpose. No-op for real types.
policy: ExecPolicyPer-call execution policy.
Auto Trait Implementations§
impl<'a, T> !UnwindSafe for TransposeDescriptor<'a, T>
impl<'a, T> Freeze for TransposeDescriptor<'a, T>
impl<'a, T> RefUnwindSafe for TransposeDescriptor<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for TransposeDescriptor<'a, T>
impl<'a, T> Sync for TransposeDescriptor<'a, T>where
T: Sync,
impl<'a, T> Unpin for TransposeDescriptor<'a, T>
impl<'a, T> UnsafeUnpin for TransposeDescriptor<'a, T>
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