Beispiel #1
0
        /** @copydoc EngineParameter::Clone */
        public override LayerParameterBase Clone()
        {
            SigmoidParameter p = new SigmoidParameter();

            p.Copy(this);
            return(p);
        }
Beispiel #2
0
        /// <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 SigmoidParameter FromProto(RawProto rp)
        {
            SigmoidParameter p = new SigmoidParameter();

            p.Copy(EngineParameter.FromProto(rp));

            return(p);
        }
Beispiel #3
0
        /** @copydoc EngineParameter::Load */
        public override object Load(System.IO.BinaryReader br, bool bNewInstance = true)
        {
            RawProto         proto = RawProto.Parse(br.ReadString());
            SigmoidParameter p     = FromProto(proto);

            if (!bNewInstance)
            {
                Copy(p);
            }

            return(p);
        }