2using System.Collections.Generic;
7using System.Threading.Tasks;
19 [TypeConverter(typeof(ExpandableObjectConverter))]
22 List<BlobShape> m_rgShape =
new List<BlobShape>();
34 [Description(
"Define N shapes to set a shape for each top; Define 1 shape to set the same shape for every top; Define no shapes to defer to manual reshaping.")]
37 get {
return m_rgShape; }
38 set { m_rgShape = value; }
42 public override object Load(BinaryReader br,
bool bNewInstance =
true)
58 m_rgShape =
new List<param.BlobShape>();
62 m_rgShape.Add(b.
Clone());
85 rgChildren.Add(b.
ToProto(
"shape"));
88 return new RawProto(strName,
"", rgChildren);
The RawProtoCollection class is a list of RawProto objects.
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.
RawProtoCollection FindChildren(params string[] rgstrName)
Searches for all children with a given name in this node's children.
Specifies the shape of a Blob.
override RawProto ToProto(string strName)
Converts the BlobShape to a RawProto.
BlobShape Clone()
Creates a copy of the BlobShape.
static BlobShape FromProto(RawProto rp)
Parse a new BlobShape from a RawProto.
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-...