Enum coaster_nn::RnnInputMode
source · pub enum RnnInputMode {
LinearInput,
SkipInput,
}
Expand description
Input Modes for RNN [cudnnRNNInputMode_t][1] [1]: https://docs.nvidia.com/deeplearning/sdk/cudnn-api/index.html#cudnnRNNInputMode_t
Variants§
LinearInput
CUDNN_LINEAR_INPUT - A biased matrix multiplication is performed at the input of the first recurrent layer
SkipInput
CUDNN_SKIP_INPUT - No operation is performed at the input of the first recurrent layer - if this is used then the leading dimension of the input tensor must be equal to the hidden state size of the network.
Implementations§
source§impl RnnInputMode
impl RnnInputMode
sourcepub fn from_string(input: &str) -> Result<Self, &str>
pub fn from_string(input: &str) -> Result<Self, &str>
Convert to RnnInputMode from String Representation
Trait Implementations§
source§impl Clone for RnnInputMode
impl Clone for RnnInputMode
source§fn clone(&self) -> RnnInputMode
fn clone(&self) -> RnnInputMode
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 RnnInputMode
impl Debug for RnnInputMode
source§impl Display for RnnInputMode
impl Display for RnnInputMode
source§impl PartialEq for RnnInputMode
impl PartialEq for RnnInputMode
source§fn eq(&self, other: &RnnInputMode) -> bool
fn eq(&self, other: &RnnInputMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RnnInputMode
impl Eq for RnnInputMode
impl StructuralPartialEq for RnnInputMode
Auto Trait Implementations§
impl RefUnwindSafe for RnnInputMode
impl Send for RnnInputMode
impl Sync for RnnInputMode
impl Unpin for RnnInputMode
impl UnwindSafe for RnnInputMode
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