2using System.Collections.Generic;
19 [TypeConverter(typeof(ExpandableObjectConverter))]
23 uint m_nPyramidHeight;
34 [Description(
"Specifies the pooling method to use.")]
37 get {
return m_method; }
38 set { m_method = value; }
44 [Description(
"Specifies the pyramid height.")]
47 get {
return m_nPyramidHeight; }
48 set { m_nPyramidHeight = value; }
52 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
71 m_method = p.m_method;
72 m_nPyramidHeight = p.m_nPyramidHeight;
87 RawProto rpBase = base.ToProto(
"engine");
91 rgChildren.
Add(
"method",
pool.ToString());
94 return new RawProto(strName,
"", rgChildren);
109 if ((strVal = rp.
FindValue(
"method")) !=
null)
126 throw new Exception(
"Unknown pooling 'method' value: " + strVal);
130 if ((strVal = rp.
FindValue(
"pyramid_height")) !=
null)
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 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.
Specifies the parameters for the PoolingLayer.
PoolingMethod
Defines the pooling method.
The SPPParameter specifies the parameters for the SPPLayer.
SPPParameter()
Constructor for the parameter.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
uint pyramid_height
Specifies the pyramid height.
static new SPPParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
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.
PoolingParameter.PoolingMethod pool
Specifies the pooling method to use.
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-...