2using System.Collections.Generic;
14 [TypeConverter(typeof(ExpandableObjectConverter))]
44 [Description(
"Specifies the first axis of the first input Blob (bottom[0]) along which to apply the second input Blob (bottom[1]). May be negative to index from the end (e.g., -1 for the last axis).")]
47 get {
return m_nAxis; }
48 set { m_nAxis = value; }
60 [Description(
"'num_axes' is ignored unless just one bottom is given and the bias is a learned parameter of the layer. Otherwise, num_axis is determined by the number of axes of the input (bottom[0] covered by the bias parameter, or -1 to cover all axes of bottom[0] starting from 'axis'. Note: Set 'num_axis' := 0 to add a zero-axis Blob: a scalar.")]
63 get {
return m_nNumAxes; }
64 set { m_nNumAxes = value; }
76 [Description(
"Specifies the filler for the initialization of the learned bias parameter. 'filler' is ignored when more than one bottom is given and the bias is NOT a leanred parameter of the layer. The default is the zero (0) initialization, resulting in the BiasLayer initially performing the identity operation.")]
79 get {
return m_filler; }
80 set { m_filler = value; }
84 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
100 m_nNumAxes = p.m_nNumAxes;
102 if (p.m_filler !=
null)
103 m_filler = p.m_filler.
Clone();
126 rgChildren.
Add(
"axis",
axis.ToString());
131 if (m_filler !=
null)
134 return new RawProto(strName,
"", rgChildren);
147 if ((strVal = rp.
FindValue(
"axis")) !=
null)
148 p.
axis =
int.Parse(strVal);
150 if ((strVal = rp.
FindValue(
"num_axes")) !=
null)
153 if ((rp = rp.
FindChild(
"filler")) !=
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.
RawProto FindChild(string strName)
Searches for a given node.
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 BiasLayer
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
BiasParameter()
Constructor for the parameter.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
static BiasParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
int axis
The first axis of bottom[0] (the first input Blob) along which to apply bottom[1] (the second input B...
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
int num_axes
(num_axes is ignored unless just one bottom is given and the bias is a learned parameter of the layer...
FillerParameter filler
(filler is ignored unless just one bottom is given and the bias is a learned parameter of the layer....
Specifies the filler parameters used to create each Filler.
static FillerParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
FillerParameter Clone()
Creates a new copy of this instance of the parameter.
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-...