#[repr(i32)]pub enum NormKind {
LayerFwdInfer = 0,
LayerFwdTrain = 1,
LayerBwd = 2,
}Expand description
NormKind kind
Variants§
Implementations§
Source§impl NormKind
impl NormKind
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for NormKind
impl Ord for NormKind
Source§impl PartialOrd for NormKind
impl PartialOrd for NormKind
impl Copy for NormKind
impl Eq for NormKind
impl StructuralPartialEq for NormKind
Auto Trait Implementations§
impl Freeze for NormKind
impl RefUnwindSafe for NormKind
impl Send for NormKind
impl Sync for NormKind
impl Unpin for NormKind
impl UnwindSafe for NormKind
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)