pub struct OperandSpec<T: TensorSupported> {
pub buf: GpuRef<T>,
pub extent: Vec<i64>,
pub stride: Vec<i64>,
pub modes: Vec<i32>,
}Expand description
One operand specification: device buffer + per-mode extents + optional strides + Einstein-summation labels.
Fields§
§buf: GpuRef<T>§extent: Vec<i64>§stride: Vec<i64>Empty == dense column-major.
modes: Vec<i32>Trait Implementations§
Source§impl<T: Clone + TensorSupported> Clone for OperandSpec<T>
impl<T: Clone + TensorSupported> Clone for OperandSpec<T>
Source§fn clone(&self) -> OperandSpec<T>
fn clone(&self) -> OperandSpec<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for OperandSpec<T>
impl<T> !RefUnwindSafe for OperandSpec<T>
impl<T> Send for OperandSpec<T>
impl<T> Sync for OperandSpec<T>
impl<T> Unpin for OperandSpec<T>
impl<T> UnsafeUnpin for OperandSpec<T>
impl<T> !UnwindSafe for OperandSpec<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