pub struct ContractRequest<T: TensorSupported> {
pub a: OperandSpec<T>,
pub b: OperandSpec<T>,
pub c: OperandSpec<T>,
pub alpha: T,
pub beta: T,
pub compute: ComputeDesc,
pub alignment: u32,
pub reply: Sender<Result<(), GpuError>>,
}Expand description
Dtype-generic contraction request.
Fields§
§a: OperandSpec<T>§b: OperandSpec<T>§c: OperandSpec<T>§alpha: T§beta: T§compute: ComputeDesc§alignment: u32Required tensor alignment in bytes.
reply: Sender<Result<(), GpuError>>Implementations§
Source§impl<T: TensorSupported> ContractRequest<T>
impl<T: TensorSupported> ContractRequest<T>
pub fn new( a: OperandSpec<T>, b: OperandSpec<T>, c: OperandSpec<T>, alpha: T, beta: T, reply: Sender<Result<(), GpuError>>, ) -> Self
pub fn with_compute(self, compute: ComputeDesc) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ContractRequest<T>where
T: Freeze,
impl<T> !RefUnwindSafe for ContractRequest<T>
impl<T> Send for ContractRequest<T>
impl<T> Sync for ContractRequest<T>
impl<T> Unpin for ContractRequest<T>where
T: Unpin,
impl<T> UnsafeUnpin for ContractRequest<T>where
T: UnsafeUnpin,
impl<T> !UnwindSafe for ContractRequest<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