/** @copydoc EngineParameter::Clone */ public override LayerParameterBase Clone() { SwishParameter p = new SwishParameter(); p.Copy(this); return(p); }
/// <summary> /// Parses the parameter from a RawProto. /// </summary> /// <param name="rp">Specifies the RawProto to parse.</param> /// <returns>A new instance of the parameter is returned.</returns> public static new SwishParameter FromProto(RawProto rp) { string strVal; SwishParameter p = new SwishParameter(); p.Copy(EngineParameter.FromProto(rp)); if ((strVal = rp.FindValue("beta")) != null) { p.beta = double.Parse(strVal); } return(p); }