pub trait Regularization:
RegularizationClone
+ Send
+ Sync
+ Serialize
+ Deserialize {
// Required methods
fn apply(&self, params: &mut [&mut DMat], grads: &mut [&mut DMat]);
fn as_any(&self) -> &dyn Any;
}Required Methods§
fn apply(&self, params: &mut [&mut DMat], grads: &mut [&mut DMat])
fn as_any(&self) -> &dyn Any
Trait Implementations§
Source§impl Clone for Box<dyn Regularization>
impl Clone for Box<dyn Regularization>
Source§impl Regularization for Box<dyn Regularization>
impl Regularization for Box<dyn Regularization>
Source§impl RegularizationClone for Box<dyn Regularization>
impl RegularizationClone for Box<dyn Regularization>
fn clone_box(&self) -> Box<dyn Regularization>
Source§impl<'typetag> Serialize for dyn Regularization + 'typetag
impl<'typetag> Serialize for dyn Regularization + 'typetag
Source§impl<'typetag> Serialize for dyn Regularization + Send + 'typetag
impl<'typetag> Serialize for dyn Regularization + Send + 'typetag
Source§impl<'typetag> Serialize for dyn Regularization + Sync + 'typetag
impl<'typetag> Serialize for dyn Regularization + Sync + 'typetag
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".