pub struct GradientFact {
pub event_id: String,
pub root: String,
pub key: String,
pub state: GradientState,
pub step: Option<u64>,
pub norm: Option<f64>,
}Expand description
Per-parameter gradient fact keyed by builder root + parameter key.
Fields§
§event_id: String§root: String§key: String§state: GradientState§step: Option<u64>Optional training step index when the trace is a time series.
norm: Option<f64>Optional L2 (or probe-defined) norm; must be consistent with GradientState.
Implementations§
Source§impl GradientFact
impl GradientFact
Trait Implementations§
Source§impl Clone for GradientFact
impl Clone for GradientFact
Source§fn clone(&self) -> GradientFact
fn clone(&self) -> GradientFact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GradientFact
impl Debug for GradientFact
Source§impl<'de> Deserialize<'de> for GradientFact
impl<'de> Deserialize<'de> for GradientFact
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GradientFact
impl PartialEq for GradientFact
Source§impl Serialize for GradientFact
impl Serialize for GradientFact
impl StructuralPartialEq for GradientFact
Auto Trait Implementations§
impl Freeze for GradientFact
impl RefUnwindSafe for GradientFact
impl Send for GradientFact
impl Sync for GradientFact
impl Unpin for GradientFact
impl UnsafeUnpin for GradientFact
impl UnwindSafe for GradientFact
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