2using System.Collections.Generic;
14 [TypeConverter(typeof(ExpandableObjectConverter))]
28 [Description(
"Specifies the axis for which to tile.")]
31 get {
return m_nAxis; }
32 set { m_nAxis = value; }
38 [Description(
"Specifies the number of copies (tiles) of the blob to output.")]
41 get {
return m_nTiles; }
42 set { m_nTiles = value; }
46 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
62 m_nTiles = p.m_nTiles;
82 rgChildren.
Add(
"axis",
axis.ToString());
83 rgChildren.
Add(
"tiles",
tiles.ToString());
85 return new RawProto(strName,
"", rgChildren);
98 if ((strVal = rp.
FindValue(
"axis")) !=
null)
99 p.
axis =
int.Parse(strVal);
101 if ((strVal = rp.
FindValue(
"tiles")) !=
null)
102 p.
tiles =
int.Parse(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.
The LayerParameterBase is the base class for all other layer specific parameters.
Specifies the parameters used by the TileLayer
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
static TileParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
int tiles
Specifies the number of copies (tiles) of the blob to output.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
int axis
Specifies the index of the axis to tile.
TileParameter()
Constructor for the parameter.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
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-...