pub struct WasmNaturalGradient { /* private fields */ }Expand description
Natural Gradient optimizer for WASM
Implementations§
Source§impl WasmNaturalGradient
impl WasmNaturalGradient
Sourcepub fn with_damping(self, damping: f64) -> Self
pub fn with_damping(self, damping: f64) -> Self
Set damping factor
Sourcepub fn with_diagonal(self, use_diagonal: bool) -> Self
pub fn with_diagonal(self, use_diagonal: bool) -> Self
Use diagonal approximation
Trait Implementations§
Source§impl From<WasmNaturalGradient> for JsValue
impl From<WasmNaturalGradient> for JsValue
Source§fn from(value: WasmNaturalGradient) -> Self
fn from(value: WasmNaturalGradient) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmNaturalGradient
impl FromWasmAbi for WasmNaturalGradient
Source§impl IntoWasmAbi for WasmNaturalGradient
impl IntoWasmAbi for WasmNaturalGradient
Source§impl RefFromWasmAbi for WasmNaturalGradient
impl RefFromWasmAbi for WasmNaturalGradient
Source§type Anchor = RcRef<WasmNaturalGradient>
type Anchor = RcRef<WasmNaturalGradient>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl TryFromJsValue for WasmNaturalGradient
impl TryFromJsValue for WasmNaturalGradient
Source§impl VectorFromWasmAbi for WasmNaturalGradient
impl VectorFromWasmAbi for WasmNaturalGradient
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmNaturalGradient]>
Source§impl VectorIntoWasmAbi for WasmNaturalGradient
impl VectorIntoWasmAbi for WasmNaturalGradient
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmNaturalGradient]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmNaturalGradient
impl WasmDescribeVector for WasmNaturalGradient
impl SupportsConstructor for WasmNaturalGradient
impl SupportsInstanceProperty for WasmNaturalGradient
impl SupportsStaticProperty for WasmNaturalGradient
Auto Trait Implementations§
impl Freeze for WasmNaturalGradient
impl RefUnwindSafe for WasmNaturalGradient
impl Send for WasmNaturalGradient
impl Sync for WasmNaturalGradient
impl Unpin for WasmNaturalGradient
impl UnwindSafe for WasmNaturalGradient
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.