2using System.Collections.Generic;
19 [TypeConverter(typeof(ExpandableObjectConverter))]
23 uint m_nStateSize = 0;
24 List<int> m_rgCardinalities =
new List<int>();
34 [Description(
"The number of categorical inputs for the layer.")]
37 get {
return m_nNumInput; }
38 set { m_nNumInput = value; }
44 [Description(
"The state size that defines the output embedding dimension width.")]
47 get {
return m_nStateSize; }
48 set { m_nStateSize = value; }
54 [Description(
"The cardinalities specify the quantity of categories associated with each of the input variables.")]
57 get {
return m_rgCardinalities; }
58 set { m_rgCardinalities = value; }
62 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
78 m_nNumInput = p.m_nNumInput;
79 m_nStateSize = p.m_nStateSize;
80 m_rgCardinalities =
new List<int>(p.m_rgCardinalities);
102 rgChildren.
Add<
int>(
"cardinality", m_rgCardinalities);
104 return new RawProto(strName,
"", rgChildren);
117 if ((strVal = rp.
FindValue(
"num_input")) !=
null)
120 if ((strVal = rp.
FindValue(
"state_size")) !=
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.
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-...