3using System.Collections.Generic;
7using System.Threading.Tasks;
15 [TypeConverter(typeof(ExpandableObjectConverter))]
18 int m_nIterations = 1;
19 string m_strDebugDataSavePath =
null;
31 [Description(
"Optionally, specifies the number of iterations for which to output debug information (default = 1)")]
34 get {
return m_nIterations; }
35 set { m_nIterations = value; }
41 [Description(
"Specifies the path where the debug data images are saved (default = null, which ignores this setting).")]
44 get {
return m_strDebugDataSavePath; }
45 set { m_strDebugDataSavePath = value; }
48 private string debug_save_path_persist
52 string strPath =
Utility.
Replace(m_strDebugDataSavePath,
':',
';');
72 m_nIterations = src.m_nIterations;
73 m_strDebugDataSavePath = src.m_strDebugDataSavePath;
85 rgChildren.
Add(
"iterations", m_nIterations.ToString());
86 rgChildren.
Add(
"debug_data_path", debug_save_path_persist);
88 return new RawProto(strName,
"", rgChildren);
105 if ((strVal = rp.
FindValue(
"iterations")) !=
null)
106 p.iterations =
int.Parse(strVal);
108 if ((strVal = rp.
FindValue(
"debug_data_path")) !=
null)
109 p.debug_save_path_persist = 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 Utility class provides general utility funtions.
static string Replace(string str, char ch1, char ch2)
Replaces each instance of one character with another character in a given string.
The DataDebugParameter is used by the DataParameter when the 'enable_debugging' = True.
RawProto ToProto(string strName)
Convert the DataDebugParameter into a RawProto.
string debug_save_path
(/b optional, default = null) Specifies the path where the debug data images are saved,...
DataDebugParameter()
The constructor.
void Copy(DataDebugParameter src)
Copies the specified source data noise parameter to this one.
static DataDebugParameter FromProto(RawProto rp, DataDebugParameter p=null)
Parses the parameter from a RawProto.
int iterations
(/b optional, default = 1) Specifies the number of iterations to output debug information.
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-...