2using System.Collections.Generic;
18 [TypeConverter(typeof(ExpandableObjectConverter))]
46 [Description(
"Specify the Norm to use: L1 or L2")]
49 get {
return m_norm; }
50 set { m_norm = value; }
54 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
89 rgChildren.
Add(
"norm",
norm.ToString());
91 return new RawProto(strName,
"", rgChildren);
104 if ((strVal = rp.
FindValue(
"norm")) !=
null)
117 throw new Exception(
"Unknown 'norm' value: " + strVal);
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.
Specifies the parameters for the HingLossLayer.
static HingeLossParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
Norm norm
Specify the Norm to use L1 or L2
HingeLossParameter()
Constructor for the parameter.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
Norm
Defines the type of normalization.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
override RawProto ToProto(string strName)
Convert the parameter into 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-...