2using System.Collections.Generic;
19 [TypeConverter(typeof(ExpandableObjectConverter))]
22 bool m_bNormalizeVariance =
true;
23 bool m_bAcrossChannels =
false;
24 double m_dfEps = 1e-9;
34 [Description(
"Specifies whether or not to normalize the variance.")]
37 get {
return m_bNormalizeVariance; }
38 set { m_bNormalizeVariance = value; }
44 [Description(
"Specifies whether or not to normalize accross channels.")]
47 get {
return m_bAcrossChannels; }
48 set { m_bAcrossChannels = value; }
54 [Description(
"Specifies a small value to avoid divide by zero.")]
58 get {
return m_dfEps; }
59 set { m_dfEps = value; }
63 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
78 m_bNormalizeVariance = p.m_bNormalizeVariance;
79 m_bAcrossChannels = p.m_bAcrossChannels;
107 rgChildren.
Add(
"eps",
eps.ToString());
109 return new RawProto(strName,
"", rgChildren);
122 if ((strVal = rp.
FindValue(
"normalize_variance")) !=
null)
125 if ((strVal = rp.
FindValue(
"across_channels")) !=
null)
128 if ((strVal = rp.
FindValue(
"eps")) !=
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.
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.
The LayerParameterBase is the base class for all other layer specific parameters.
Specifies the parameters for the MVNLayer.
double eps
Specifies a small value to avoid divide by zero.
static MVNParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
MVNParameter()
Constructor for the parameter.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
bool across_channels
Specifies whether or not to normalize accross channels.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
bool normalize_variance
Specifies whether or not to normalize the variance.
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-...