2using System.Collections.Generic;
22 [TypeConverter(typeof(ExpandableObjectConverter))]
26 bool m_bEnableClipOutput =
false;
27 bool m_bEnableWtsOutput =
false;
28 int m_nForcedRepeatCount = -1;
53 [Description(
"Specifies the forced repeat steps bottom(1). A value of -1 specifies to use the temporal axis as the repeat count (default), otherwise the forced count is used to compy the entire blob that number of times.")]
56 get {
return m_nForcedRepeatCount; }
57 set { m_nForcedRepeatCount = value; }
63 [Description(
"Specifies to output the clip for the data ouptut in the AFTER mode.")]
66 get {
return m_bEnableClipOutput; }
67 set { m_bEnableClipOutput = value; }
73 [Description(
"Specifies to output the weights for the data ouptut in the AFTER mode.")]
76 get {
return m_bEnableWtsOutput; }
77 set { m_bEnableWtsOutput = value; }
83 [Description(
"Specifies the mode of operation.")]
86 get {
return m_mode; }
87 set { m_mode = value; }
91 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
130 rgChildren.
Add(
"mode",
mode.ToString());
135 return new RawProto(strName,
"", rgChildren);
148 if ((strVal = rp.
FindValue(
"mode")) !=
null)
150 if (strVal ==
MODE.BEFORE.ToString())
152 else if (strVal ==
MODE.AFTER.ToString())
155 throw new Exception(
"Invalid mode '" + strVal +
"'.");
158 if ((strVal = rp.
FindValue(
"enable_clip_output")) !=
null)
161 if ((strVal = rp.
FindValue(
"enable_weight_output")) !=
null)
164 if ((strVal = rp.
FindValue(
"forced_repeat_count")) !=
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 ReshapeTemporalLayer.
bool enable_weight_output
Specifies to output the weights for the data output in the AFTER mode.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
int forced_repeat_count
Specifies the forced repeat steps bottom(1). A value of -1 specifies to use the temporal axis as the ...
bool enable_clip_output
Specifies to output the clip for the data output in the AFTER mode.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
MODE
Defines the modulation type.
ReshapeTemporalParameter()
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.
MODE mode
Specifies the mode of operation.
static ReshapeTemporalParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
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-...