#[repr(i32)]pub enum ConvolutionKind {
Invalid = 0,
Forward = 1,
BackwardFilter = 2,
BackwardData = 3,
ForwardBiasActivation = 4,
ForwardGraph = 5,
}Variants§
Invalid = 0
Forward = 1
BackwardFilter = 2
BackwardData = 3
ForwardBiasActivation = 4
ForwardGraph = 5
Implementations§
Source§impl ConvolutionKind
impl ConvolutionKind
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 Clone for ConvolutionKind
impl Clone for ConvolutionKind
Source§fn clone(&self) -> ConvolutionKind
fn clone(&self) -> ConvolutionKind
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConvolutionKind
impl Debug for ConvolutionKind
Source§impl Default for ConvolutionKind
impl Default for ConvolutionKind
Source§fn default() -> ConvolutionKind
fn default() -> ConvolutionKind
Returns the “default value” for a type. Read more
Source§impl From<ConvolutionKind> for i32
impl From<ConvolutionKind> for i32
Source§fn from(value: ConvolutionKind) -> i32
fn from(value: ConvolutionKind) -> i32
Converts to this type from the input type.
Source§impl Hash for ConvolutionKind
impl Hash for ConvolutionKind
Source§impl Ord for ConvolutionKind
impl Ord for ConvolutionKind
Source§impl PartialEq for ConvolutionKind
impl PartialEq for ConvolutionKind
Source§impl PartialOrd for ConvolutionKind
impl PartialOrd for ConvolutionKind
Source§impl TryFrom<i32> for ConvolutionKind
impl TryFrom<i32> for ConvolutionKind
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ConvolutionKind, UnknownEnumValue>
fn try_from(value: i32) -> Result<ConvolutionKind, UnknownEnumValue>
Performs the conversion.
impl Copy for ConvolutionKind
impl Eq for ConvolutionKind
impl StructuralPartialEq for ConvolutionKind
Auto Trait Implementations§
impl Freeze for ConvolutionKind
impl RefUnwindSafe for ConvolutionKind
impl Send for ConvolutionKind
impl Sync for ConvolutionKind
impl Unpin for ConvolutionKind
impl UnwindSafe for ConvolutionKind
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)