2using System.Collections.Generic;
14 [TypeConverter(typeof(ExpandableObjectConverter))]
32 return "This layer is curently only supported in Caffe.";
47 [Description(
"Specifies the min parameter for the Clip function.")]
50 get {
return m_dfMin; }
51 set { m_dfMin = value; }
57 [Description(
"Specifies the max parameter for the Clip function.")]
60 get {
return m_dfMax; }
61 set { m_dfMax = value; }
65 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
104 rgChildren.
Add(
"min",
min.ToString());
105 rgChildren.
Add(
"max",
max.ToString());
107 return new RawProto(strName,
"", rgChildren);
122 if ((strVal = rp.
FindValue(
"min")) !=
null)
125 if ((strVal = rp.
FindValue(
"max")) !=
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.
Stores the parameters used by the ClipLayer
override void Copy(LayerParameterBase src)
Copy on parameter to another.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
double min
Specifies the min value for the Clip activation function.
string useCaffeReason()
Returns the reason that Caffe version was used instead of NVIDIA's cuDnn.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
ClipParameter()
Constructor for the parameter.
static ClipParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
double max
Specifies the max value for the Clip activation function.
bool useCudnn()
Queries whether or not to use NVIDIA's cuDnn.
Specifies whether to use the NVIDIA cuDnn version or Caffe version of a given forward/backward operat...
static EngineParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
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-...