2using System.Collections.Generic;
18 [TypeConverter(typeof(ExpandableObjectConverter))]
21 string m_strPythonPath =
"$Default$";
37 [Description(
"Specifies the path to the Python runtime.")]
40 get {
return m_strPythonPath; }
41 set { m_strPythonPath = value; }
45 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
60 m_strPythonPath = p.m_strPythonPath;
82 return new RawProto(strName,
"", rgChildren);
95 if ((strVal = rp.
FindValue(
"python_path")) !=
null)
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 PythonLayer.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
static PythonParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
string python_path
Specifies the path to the Python runtime.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
PythonParameter()
Constructor for the parameter.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...