Struct rcudnn::DropoutDescriptor
source · pub struct DropoutDescriptor { /* private fields */ }
Expand description
Describes a DropoutDescriptor.
Implementations§
source§impl DropoutDescriptor
impl DropoutDescriptor
sourcepub fn new(
handle: &Cudnn,
dropout: f32,
seed: u64,
reserve: *mut c_void,
reserve_size: usize
) -> Result<DropoutDescriptor, Error>
pub fn new( handle: &Cudnn, dropout: f32, seed: u64, reserve: *mut c_void, reserve_size: usize ) -> Result<DropoutDescriptor, Error>
Initializes a new CUDA cuDNN Dropout Descriptor.
sourcepub fn get_required_size() -> usize
pub fn get_required_size() -> usize
Get the size for a tensor
sourcepub fn from_c(id: cudnnDropoutDescriptor_t) -> DropoutDescriptor
pub fn from_c(id: cudnnDropoutDescriptor_t) -> DropoutDescriptor
Initializes a new CUDA cuDNN Tensor Descriptor from its C type.
sourcepub fn id_c(&self) -> &cudnnDropoutDescriptor_t
pub fn id_c(&self) -> &cudnnDropoutDescriptor_t
Returns the CUDA cuDNN Tensor Descriptor as its C type.
Trait Implementations§
source§impl Clone for DropoutDescriptor
impl Clone for DropoutDescriptor
source§fn clone(&self) -> DropoutDescriptor
fn clone(&self) -> DropoutDescriptor
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 DropoutDescriptor
impl Debug for DropoutDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for DropoutDescriptor
impl !Send for DropoutDescriptor
impl !Sync for DropoutDescriptor
impl Unpin for DropoutDescriptor
impl UnwindSafe for DropoutDescriptor
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