3using System.Collections.Generic;
7using System.Threading.Tasks;
15 [TypeConverter(typeof(ExpandableObjectConverter))]
18 bool m_bActive =
false;
32 [Description(
"Specifies whether or not this parameter is enabled (and used). This parameter is not used when this setting is False.")]
35 get {
return m_bActive; }
36 set { m_bActive = value; }
45 m_bActive = src.m_bActive;
57 rgChildren.
Add(
"active", m_bActive.ToString());
59 return new RawProto(strName,
"", rgChildren);
72 if ((strVal = rp.
FindValue(
"active")) !=
null)
73 p.
Active =
bool.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.
string FindValue(string strName)
Searches for a falue of a node within this nodes children.
The OptionalParameter is the base class for parameters that are optional such as the MaskParameter,...
virtual RawProto ToProto(string strName)
Convert this object to a raw proto.
virtual void Copy(OptionalParameter src)
Copy the source object.
static OptionalParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
OptionalParameter(bool bActive=false)
The constructor.
bool Active
When active, the parameter is used, otherwise it is ignored.
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-...