2using System.Collections.Generic;
14 [TypeConverter(typeof(ExpandableObjectConverter))]
17 bool m_bBiasTerm =
false;
29 [Description(
"Specifies whether to also learn a 'bias' (eqivalent to a ScalarLayer + BiasLayer, but may be more efficient).")]
32 get {
return m_bBiasTerm; }
33 set { m_bBiasTerm = value; }
39 [Description(
"Specifies the filler used for bias filling.")]
42 get {
return m_FillerBias; }
43 set { m_FillerBias = value; }
47 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
65 m_bBiasTerm = p.m_bBiasTerm;
67 if (p.m_FillerBias !=
null)
68 m_FillerBias = p.m_FillerBias.
Clone();
96 return new RawProto(strName,
"", rgChildren);
109 if ((strVal = rp.
FindValue(
"bias_term")) !=
null)
113 if (rpBiasFiller !=
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
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.
abstract void Copy(LayerParameterBase src)
Copy on parameter to another.
Specifies the parameters for the ScaleLayer.
ScaleParameter()
Constructor for the parameter.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
static new ScaleParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
bool bias_term
Whether to also learn a bias (equivalent to a ScalarLayer + BiasLayer, but may be more efficient).
FillerParameter bias_filler
Filler used for bias filling.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
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-...