2using System.Collections.Generic;
20 [TypeConverter(typeof(ExpandableObjectConverter))]
24 uint? m_nConcatDim =
null;
38 [Description(
"The axis along which to concatenate - may be negative to index from the end (e.g., -1 for the last axis). Other axes must have the same dimension for all the bottom blobs. By default, the ConcatLayer concatenates blobs along the 'channel' axis 1.")]
41 get {
return m_nAxis; }
42 set { m_nAxis = value; }
48 [Description(
"DEPRECIATED - use 'axis' instead.")]
51 get {
return m_nConcatDim; }
52 set { m_nConcatDim = value; }
56 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
72 m_nConcatDim = p.m_nConcatDim;
93 rgChildren.
Add(
"axis",
axis.ToString());
98 return new RawProto(strName,
"", rgChildren);
111 if ((strVal = rp.
FindValue(
"axis")) !=
null)
112 p.
axis =
int.Parse(strVal);
114 if ((strVal = rp.
FindValue(
"concat_dim")) !=
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.
Specifies the parameters for the ConcatLayer
uint? concat_dim
DEPRECIATED: alias for 'axis' – does not support negative indexing.
int axis
The axis along which to concatenate – may be negative to index from the end (e.g.,...
override void Copy(LayerParameterBase src)
Copy on parameter to another.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
static ConcatParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
ConcatParameter()
Constructor for the parameter.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
The LayerParameterBase is the base class for all other layer specific parameters.
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-...