#[repr(i32)]pub enum StepMarkerLocation {
StepMarkAtEntry = 0,
StepMarkAtTopLevelWhileLoop = 1,
StepMarkAtSecondLevelWhileLoop = 3,
StepMarkNone = 2,
}Variants§
StepMarkAtEntry = 0
Generate a step marker at the program entry. This handles the case where each step is done by one or multiple program execution(s). Only the first program will be tagged for generating a step marker at the program entry. This is the default.
StepMarkAtTopLevelWhileLoop = 1
Generate a step marker at each iteration of the top level while loop, which is assumed to be a training loop.
StepMarkAtSecondLevelWhileLoop = 3
Generate a step marker at each iteration of the second level while loops, which is assumed to be a training or eval loop.
StepMarkNone = 2
No step marker generated.
Implementations§
Source§impl StepMarkerLocation
impl StepMarkerLocation
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 StepMarkerLocation
impl Clone for StepMarkerLocation
Source§fn clone(&self) -> StepMarkerLocation
fn clone(&self) -> StepMarkerLocation
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StepMarkerLocation
impl Debug for StepMarkerLocation
Source§impl Default for StepMarkerLocation
impl Default for StepMarkerLocation
Source§fn default() -> StepMarkerLocation
fn default() -> StepMarkerLocation
Source§impl From<StepMarkerLocation> for i32
impl From<StepMarkerLocation> for i32
Source§fn from(value: StepMarkerLocation) -> i32
fn from(value: StepMarkerLocation) -> i32
Source§impl Hash for StepMarkerLocation
impl Hash for StepMarkerLocation
Source§impl Ord for StepMarkerLocation
impl Ord for StepMarkerLocation
Source§impl PartialEq for StepMarkerLocation
impl PartialEq for StepMarkerLocation
Source§impl PartialOrd for StepMarkerLocation
impl PartialOrd for StepMarkerLocation
Source§impl TryFrom<i32> for StepMarkerLocation
impl TryFrom<i32> for StepMarkerLocation
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<StepMarkerLocation, UnknownEnumValue>
fn try_from(value: i32) -> Result<StepMarkerLocation, UnknownEnumValue>
impl Copy for StepMarkerLocation
impl Eq for StepMarkerLocation
impl StructuralPartialEq for StepMarkerLocation
Auto Trait Implementations§
impl Freeze for StepMarkerLocation
impl RefUnwindSafe for StepMarkerLocation
impl Send for StepMarkerLocation
impl Sync for StepMarkerLocation
impl Unpin for StepMarkerLocation
impl UnwindSafe for StepMarkerLocation
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
§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)
clone_to_uninit)