#[non_exhaustive]#[repr(u32)]pub enum cudnnBackendLayoutType_t {
CUDNN_LAYOUT_TYPE_PREFERRED_NCHW = 0,
CUDNN_LAYOUT_TYPE_PREFERRED_NHWC = 1,
CUDNN_LAYOUT_TYPE_PREFERRED_PAD4CK = 2,
CUDNN_LAYOUT_TYPE_PREFERRED_PAD8CK = 3,
CUDNN_LAYOUT_TYPE_COUNT = 4,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CUDNN_LAYOUT_TYPE_PREFERRED_NCHW = 0
CUDNN_LAYOUT_TYPE_PREFERRED_NHWC = 1
CUDNN_LAYOUT_TYPE_PREFERRED_PAD4CK = 2
CUDNN_LAYOUT_TYPE_PREFERRED_PAD8CK = 3
CUDNN_LAYOUT_TYPE_COUNT = 4
Trait Implementations§
source§impl Clone for cudnnBackendLayoutType_t
impl Clone for cudnnBackendLayoutType_t
source§fn clone(&self) -> cudnnBackendLayoutType_t
fn clone(&self) -> cudnnBackendLayoutType_t
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 cudnnBackendLayoutType_t
impl Debug for cudnnBackendLayoutType_t
source§impl Hash for cudnnBackendLayoutType_t
impl Hash for cudnnBackendLayoutType_t
source§impl PartialEq for cudnnBackendLayoutType_t
impl PartialEq for cudnnBackendLayoutType_t
source§fn eq(&self, other: &cudnnBackendLayoutType_t) -> bool
fn eq(&self, other: &cudnnBackendLayoutType_t) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for cudnnBackendLayoutType_t
impl Eq for cudnnBackendLayoutType_t
impl StructuralPartialEq for cudnnBackendLayoutType_t
Auto Trait Implementations§
impl RefUnwindSafe for cudnnBackendLayoutType_t
impl Send for cudnnBackendLayoutType_t
impl Sync for cudnnBackendLayoutType_t
impl Unpin for cudnnBackendLayoutType_t
impl UnwindSafe for cudnnBackendLayoutType_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