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