2using System.Collections.Generic;
32 [TypeConverter(typeof(ExpandableObjectConverter))]
35 double m_dfAlpha = 1.1;
36 int m_nPreGenerateTargtStart = 0;
48 get {
return m_dfAlpha; }
49 set { m_dfAlpha = value; }
55 [Description(
"Specifies the starting label for pre-generated targets, only used when 'colBottom.Count' = 5, which contains centroids.")]
58 get {
return m_nPreGenerateTargtStart; }
59 set { m_nPreGenerateTargtStart = value; }
68 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
86 m_dfAlpha = p.m_dfAlpha;
87 m_nPreGenerateTargtStart = p.m_nPreGenerateTargtStart;
110 rgChildren.
Add(
"alpha",
alpha.ToString());
113 return new RawProto(strName,
"", rgChildren);
126 if ((strVal = rp.
FindValue(
"alpha")) !=
null)
129 if ((strVal = rp.
FindValue(
"pregen_label_start")) !=
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.
The LayerParameterBase is the base class for all other layer specific parameters.
Specifies the parameters for the TripletLossLayer.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
TripletLossParameter()
Constructor for the parameter.
static TripletLossParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
int pregen_label_start
Specifies the starting label for pre-generated targets, only used when 'colBottom....
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
double alpha
Specifies the margin.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe.param.beta parameters are used by the MyCaffe.layer.beta layers.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...