2using System.Collections.Generic;
18 [TypeConverter(typeof(ExpandableObjectConverter))]
21 double m_dfAlpha = 1.0;
36 return "The engine setting is set on CAFFE.";
39 return "cuDnn only supports Alpha = 1.0";
62 [Description(
"Described in 'Clevert, D. -A, Unterthiner, T., & Hochreiter, S. (2015). Fast and Accurate Deep Network Learning from Exponential Linear Units (ELUs). arXiv")]
65 get {
return m_dfAlpha; }
66 set { m_dfAlpha = value; }
70 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
89 m_dfAlpha = p.m_dfAlpha;
108 RawProto rpBase = base.ToProto(
"engine");
114 rgChildren.
Add(
"alpha",
alpha.ToString());
116 return new RawProto(strName,
"", rgChildren);
131 if ((strVal = rp.
FindValue(
"alpha")) !=
null)
static double ParseDouble(string strVal)
Parse double values using the US culture if the decimal separator = '.', then using the native cultur...
The RawProtoCollection class is a list of RawProto objects.
void Add(RawProto p)
Adds a RawProto to the collection.
The RawProto class is used to parse and output Google prototxt file data.
RawProtoCollection Children
Returns a collection of this nodes child nodes.
static RawProto Parse(string str)
Parses a prototxt and places it in a new RawProto.
string FindValue(string strName)
Searches for a falue of a node within this nodes children.
Specifies the parameters for the EluLayer.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
EluParameter()
Constructor for the parameter.
bool useCudnn()
Queries whether or not to use NVIDIA's cuDnn.
string useCaffeReason()
Returns the reason that Caffe version was used instead of NVIDIA's cuDnn.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
double alpha
Described in Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs) by Clevert,...
static new EluParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
Specifies whether to use the NVIDIA cuDnn version or Caffe version of a given forward/backward operat...
Engine engine
Specifies the Engine in use.
EngineParameter()
Constructor for the parameter.
static EngineParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
Engine
Defines the type of engine to use.
The LayerParameterBase is the base class for all other layer specific parameters.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe.param namespace contains parameters used to create models.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...