2using System.Collections.Generic;
19 [TypeConverter(typeof(ExpandableObjectConverter))]
22 int m_nInputFeatures = 0;
23 int m_nHiddenSize = 0;
24 int m_nOutputFeatures = 0;
25 bool m_bReturnSequence =
false;
51 [Description(
"Specifies the cell type to use.")]
54 get {
return m_cellType; }
55 set { m_cellType = value; }
61 [Description(
"Specifies the number of input features.")]
64 get {
return m_nInputFeatures; }
65 set { m_nInputFeatures = value; }
71 [Description(
"Specifies the hidden size used to size the backbone units and other internal layers.")]
74 get {
return m_nHiddenSize; }
75 set { m_nHiddenSize = value; }
81 [Description(
"Specifies the number of output features.")]
84 get {
return m_nOutputFeatures; }
85 set { m_nOutputFeatures = value; }
91 [Description(
"Specifies whether or not to return the sequence.")]
94 get {
return m_bReturnSequence; }
95 set { m_bReturnSequence = value; }
99 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
118 m_bReturnSequence = p.m_bReturnSequence;
145 return new RawProto(strName,
"", rgChildren);
158 if ((strVal = rp.
FindValue(
"input_features")) !=
null)
161 if ((strVal = rp.
FindValue(
"hidden_size")) !=
null)
164 if ((strVal = rp.
FindValue(
"output_features")) !=
null)
167 if ((strVal = rp.
FindValue(
"return_sequences")) !=
null)
170 if ((strVal = rp.
FindValue(
"cell_type")) !=
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 used by the CfcLayer. Note, you must also fill out the CfcUnitParameter.
CELL_TYPE cell_type
Specifies the cell type to use (default = CFC).
override void Copy(LayerParameterBase src)
Copy on parameter to another.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
CfcParameter()
Constructor for the parameter.
CELL_TYPE
Defines the cell type.
int input_features
Specifies the number of input features.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
int output_features
Specifies the number of output features
int hidden_size
Specifies the hidden size used to size the backbone units and other internal layers.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
static CfcParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
bool return_sequences
Specifies whether or not to return the sequence.
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-...