2using System.Collections.Generic;
14 [TypeConverter(typeof(ExpandableObjectConverter))]
18 uint m_nBlockSize = 128;
30 get {
return m_nEmbed; }
31 set { m_nEmbed = value; }
39 get {
return m_nBlockSize; }
40 set { m_nBlockSize = value; }
44 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
81 rgChildren.
Add(
"embed",
embed.ToString());
84 return new RawProto(strName,
"", rgChildren);
97 if ((strVal = rp.
FindValue(
"embed")) !=
null)
98 p.
embed = uint.Parse(strVal);
100 if ((strVal = rp.
FindValue(
"block_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.
Specifies the parameters for the PositionalEncoderLayer.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
static PositionalEncoderParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
uint embed
Specifies size of the embed.
uint block_size
Specifies size of the block.
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.
PositionalEncoderParameter()
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-...