2using System.Collections.Generic;
19 [TypeConverter(typeof(ExpandableObjectConverter))]
34 [Description(
"The beta value.")]
37 get {
return m_fBeta; }
38 set { m_fBeta = value; }
47 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
88 rgChildren.
Add(
"beta",
beta.ToString());
90 return new RawProto(strName,
"", rgChildren);
103 if ((strVal = rp.
FindValue(
"beta")) !=
null)
104 p.
beta =
int.Parse(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.
The LayerParameterBase is the base class for all other layer specific parameters.
Specifies the parameters for the TVLossLayer
static TVLossParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
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.
float beta
The beta value.
TVLossParameter()
The constructor.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe.param.nt namespace defines the parameters used by the Nerual Style Transfer layers.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...