2using System.Collections.Generic;
15 [TypeConverter(typeof(ExpandableObjectConverter))]
47 [Description(
"Specifies the engine to use 'CAFFE' or CUDNN. In most instances CUDNN is the default.")]
50 get {
return m_engine; }
51 set { m_engine = value; }
55 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
71 m_engine = p.m_engine;
92 rgChildren.
Add(
"engine",
engine.ToString());
94 return new RawProto(strName,
"", rgChildren);
107 if ((strVal = rp.
FindValue(
"engine")) !=
null)
124 throw new Exception(
"Unknown 'engine' value: " + 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.
Specifies whether to use the NVIDIA cuDnn version or Caffe version of a given forward/backward operat...
Engine engine
Specifies the Engine in use.
EngineParameter()
Constructor for the parameter.
static EngineParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
Engine
Defines the type of engine to use.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
The LayerParameterBase is the base class for all other layer specific parameters.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
@ DEFAULT
Specifies to use the default data type of the gym used.
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-...