2using System.Collections.Generic;
14 [TypeConverter(typeof(ExpandableObjectConverter))]
22 m_shape.
dim =
new List<int>();
31 [Description(
"Specifies the axes to remove if dim=1 on squeeze, or add dim=1 on unsqueeze.")]
34 get {
return m_shape.
dim; }
35 set { m_shape.
dim = value; }
39 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
54 m_shape = p.m_shape.
Clone();
72 return m_shape.
ToProto(strName);
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.
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.
List< int > dim
The blob shape dimensions.
The LayerParameterBase is the base class for all other layer specific parameters.
Specifies the parameters for the SqueezeLayer.
static SqueezeParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
SqueezeParameter()
Constructor for the parameter.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
List< int > axes
Specifies the axes to remove if dim=1 on squeeze, or add dim=1 on unsqueeze.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe.param.beta parameters are used by the MyCaffe.layer.beta layers.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...