pub struct ReduceTensorDescriptor { /* private fields */ }Expand description
A reduce-tensor descriptor: reduction op + compute dtype.
Implementations§
Source§impl ReduceTensorDescriptor
impl ReduceTensorDescriptor
Sourcepub fn new(op: ReduceOp, compute: DType) -> Result<Self>
pub fn new(op: ReduceOp, compute: DType) -> Result<Self>
Build a reduce-tensor descriptor for op with compute as the
accumulation dtype. NaN propagation defaults to PropagateNan;
indices are not returned (use the lower-level cuDNN API directly
for arg-reductions).
Sourcepub fn workspace_size(
&self,
handle: &Handle,
a: &TensorDescriptor,
c: &TensorDescriptor,
) -> Result<usize>
pub fn workspace_size( &self, handle: &Handle, a: &TensorDescriptor, c: &TensorDescriptor, ) -> Result<usize>
Workspace bytes required to run reduce_tensor reducing a into c.
Sourcepub fn as_raw(&self) -> cudnnReduceTensorDescriptor_t
pub fn as_raw(&self) -> cudnnReduceTensorDescriptor_t
Raw descriptor.
Trait Implementations§
Source§impl Debug for ReduceTensorDescriptor
impl Debug for ReduceTensorDescriptor
Source§impl Drop for ReduceTensorDescriptor
impl Drop for ReduceTensorDescriptor
impl Send for ReduceTensorDescriptor
Auto Trait Implementations§
impl !Sync for ReduceTensorDescriptor
impl Freeze for ReduceTensorDescriptor
impl RefUnwindSafe for ReduceTensorDescriptor
impl Unpin for ReduceTensorDescriptor
impl UnsafeUnpin for ReduceTensorDescriptor
impl UnwindSafe for ReduceTensorDescriptor
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