Struct rcudnn::TensorDescriptor
source · pub struct TensorDescriptor { /* private fields */ }
Expand description
Describes a TensorDescriptor.
Implementations§
source§impl TensorDescriptor
impl TensorDescriptor
sourcepub fn new(
dims: &[i32],
strides: &[i32],
data_type: DataType
) -> Result<TensorDescriptor, Error>
pub fn new( dims: &[i32], strides: &[i32], data_type: DataType ) -> Result<TensorDescriptor, Error>
Initializes a new CUDA cuDNN Tensor Descriptor.
sourcepub fn from_c(id: cudnnTensorDescriptor_t) -> TensorDescriptor
pub fn from_c(id: cudnnTensorDescriptor_t) -> TensorDescriptor
Initializes a new CUDA cuDNN Tensor Descriptor from its C type.
sourcepub fn id_c(&self) -> &cudnnTensorDescriptor_t
pub fn id_c(&self) -> &cudnnTensorDescriptor_t
Returns the CUDA cuDNN Tensor Descriptor as its C type.
Trait Implementations§
source§impl Clone for TensorDescriptor
impl Clone for TensorDescriptor
source§fn clone(&self) -> TensorDescriptor
fn clone(&self) -> TensorDescriptor
Returns a copy 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 moresource§impl Debug for TensorDescriptor
impl Debug for TensorDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for TensorDescriptor
impl !Send for TensorDescriptor
impl !Sync for TensorDescriptor
impl Unpin for TensorDescriptor
impl UnwindSafe for TensorDescriptor
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