2using System.Collections.Generic;
14 [TypeConverter(typeof(ExpandableObjectConverter))]
17 bool m_bEnableBertVersion =
false;
27 [Description(
"Specifies to use the special BERT version used in GPT models.")]
30 get {
return m_bEnableBertVersion; }
31 set { m_bEnableBertVersion = value; }
35 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
73 return new RawProto(strName,
"", rgChildren);
86 if ((strVal = rp.
FindValue(
"enable_bert_version")) !=
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.
The LayerParameterBase is the base class for all other layer specific parameters.
Specifies the parameters for the GeluLayer.
bool enable_bert_version
Specifies to use the special BERT version used in GPT models.
static GeluParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
GeluParameter()
Constructor for the parameter.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...