pub struct GradientUpdate {
pub layer_id: String,
pub gradients: Vec<f32>,
pub eligibility_trace: Option<Vec<f32>>,
}Expand description
Individual gradient update for a specific layer or parameter.
Fields§
§layer_id: StringTarget layer identifier.
gradients: Vec<f32>Gradient values (flattened or sparse representation).
eligibility_trace: Option<Vec<f32>>Optional eligibility trace for E-prop algorithms.
Trait Implementations§
Source§impl Clone for GradientUpdate
impl Clone for GradientUpdate
Source§impl Debug for GradientUpdate
impl Debug for GradientUpdate
Source§impl<'de> Deserialize<'de> for GradientUpdate
impl<'de> Deserialize<'de> for GradientUpdate
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 GradientUpdate
impl PartialEq for GradientUpdate
Source§impl Serialize for GradientUpdate
impl Serialize for GradientUpdate
impl StructuralPartialEq for GradientUpdate
Source§impl Validate for GradientUpdate
impl Validate for GradientUpdate
Source§fn validate_with(&self, limits: ProtocolLimits) -> Result<(), ValidationError>
fn validate_with(&self, limits: ProtocolLimits) -> Result<(), ValidationError>
Validate against an explicit policy.
Source§fn validate(&self) -> Result<(), ValidationError>
fn validate(&self) -> Result<(), ValidationError>
Validate against
ProtocolLimits::DEFAULT.Auto Trait Implementations§
impl Freeze for GradientUpdate
impl RefUnwindSafe for GradientUpdate
impl Send for GradientUpdate
impl Sync for GradientUpdate
impl Unpin for GradientUpdate
impl UnsafeUnpin for GradientUpdate
impl UnwindSafe for GradientUpdate
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