pub enum Activation {
ReLU,
Sigmoid,
Tanh,
Linear,
}
Expand description
Activation functions
Variants§
Trait Implementations§
Source§impl Clone for Activation
impl Clone for Activation
Source§fn clone(&self) -> Activation
fn clone(&self) -> Activation
Returns a duplicate of the value. Read more
1.0.0 · 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 Activation
impl Debug for Activation
Source§impl<'de> Deserialize<'de> for Activation
impl<'de> Deserialize<'de> for Activation
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 From<Activation> for JsValue
impl From<Activation> for JsValue
Source§fn from(value: Activation) -> Self
fn from(value: Activation) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for Activation
impl FromWasmAbi for Activation
Source§impl IntoWasmAbi for Activation
impl IntoWasmAbi for Activation
Source§impl OptionFromWasmAbi for Activation
impl OptionFromWasmAbi for Activation
Source§impl OptionIntoWasmAbi for Activation
impl OptionIntoWasmAbi for Activation
Source§impl Serialize for Activation
impl Serialize for Activation
Source§impl TryFromJsValue for Activation
impl TryFromJsValue for Activation
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <Activation as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <Activation as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for Activation
impl VectorFromWasmAbi for Activation
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Activation]>
Source§impl VectorIntoJsValue for Activation
impl VectorIntoJsValue for Activation
fn vector_into_jsvalue(vector: Box<[Activation]>) -> JsValue
Source§impl VectorIntoWasmAbi for Activation
impl VectorIntoWasmAbi for Activation
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Activation]>) -> Self::Abi
Source§impl WasmDescribeVector for Activation
impl WasmDescribeVector for Activation
impl Copy for Activation
Auto Trait Implementations§
impl Freeze for Activation
impl RefUnwindSafe for Activation
impl Send for Activation
impl Sync for Activation
impl Unpin for Activation
impl UnwindSafe for Activation
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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::Abi
Source§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
.