2using System.Collections.Generic;
20 [TypeConverter(typeof(ExpandableObjectConverter))]
24 bool m_bChannelShared =
false;
34 [Description(
"Specifies filler used for initial value of 'a_i'. Default is 'a_i' = 0.25 for all 'i'.")]
37 get {
return m_filler; }
38 set { m_filler = value; }
44 [Description(
"Specifies whether or not slope parameters are shared across channels.")]
47 get {
return m_bChannelShared; }
48 set { m_bChannelShared = value; }
52 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
68 if (p.m_filler !=
null)
69 m_filler = p.m_filler.
Clone();
71 m_bChannelShared = p.m_bChannelShared;
97 return new RawProto(strName,
"", rgChildren);
111 if (rpFiller !=
null)
114 if ((strVal = rp.
FindValue(
"channel_shared")) !=
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.
RawProto FindChild(string strName)
Searches for a given node.
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 filler parameters used to create each Filler.
static FillerParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
FillerParameter Clone()
Creates a new copy of this instance of the parameter.
The LayerParameterBase is the base class for all other layer specific parameters.
Specifies the parameters for the PReLULayer.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
static PReLUParameter 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.
bool channel_shared
Specifies whether or not slope parameters are shared across channels.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
FillerParameter filler
Specifies initial value of . Default is for all i.
PReLUParameter()
Constructor for the parameter.
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-...