2using System.Collections.Generic;
17 [TypeConverter(typeof(ExpandableObjectConverter))]
20 double m_dfThreshold = 0;
30 [Description(
"Specifies the threshold value which must be strictly positive values.")]
33 get {
return m_dfThreshold; }
34 set { m_dfThreshold = value; }
38 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
53 m_dfThreshold = p.m_dfThreshold;
75 return new RawProto(strName,
"", rgChildren);
88 if ((strVal = rp.
FindValue(
"threshold")) !=
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.
Stores the parameters used by the ThresholdLayer
static ThresholdParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
double threshold
Specifies the threshold value which must be strictly positive values.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
ThresholdParameter()
Constructor for the parameter.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
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-...