From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- .../classarmnn_1_1_test_q_lstm_layer_visitor.xhtml | 621 +++++++++++++++++++++ 1 file changed, 621 insertions(+) create mode 100644 21.02/classarmnn_1_1_test_q_lstm_layer_visitor.xhtml (limited to '21.02/classarmnn_1_1_test_q_lstm_layer_visitor.xhtml') diff --git a/21.02/classarmnn_1_1_test_q_lstm_layer_visitor.xhtml b/21.02/classarmnn_1_1_test_q_lstm_layer_visitor.xhtml new file mode 100644 index 0000000000..575b48555a --- /dev/null +++ b/21.02/classarmnn_1_1_test_q_lstm_layer_visitor.xhtml @@ -0,0 +1,621 @@ + + + + + + + + + + + + + +ArmNN: TestQLstmLayerVisitor Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TestQLstmLayerVisitor Class Reference
+
+
+ +

#include <ConstTensorLayerVisitor.hpp>

+
+Inheritance diagram for TestQLstmLayerVisitor:
+
+
+ + +TestLayerVisitor +LayerVisitorBase< VisitorNoThrowPolicy > +ILayerVisitor + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 TestQLstmLayerVisitor (const QLstmDescriptor &descriptor, const LstmInputParams &params, const char *name=nullptr)
 
void VisitQLstmLayer (const IConnectableLayer *layer, const QLstmDescriptor &descriptor, const LstmInputParams &params, const char *name=nullptr)
 Function a QLstm layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
- Public Member Functions inherited from TestLayerVisitor
 TestLayerVisitor (const char *name)
 
- Public Member Functions inherited from LayerVisitorBase< VisitorNoThrowPolicy >
void VisitAbsLayer (const IConnectableLayer *, const char *) override
 Function an absolute layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitActivationLayer (const IConnectableLayer *, const ActivationDescriptor &, const char *) override
 Function that an activation layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitAdditionLayer (const IConnectableLayer *, const char *) override
 Function that an addition layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitArgMinMaxLayer (const IConnectableLayer *, const ArgMinMaxDescriptor &, const char *) override
 Function that an arg min max layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitBatchNormalizationLayer (const IConnectableLayer *, const BatchNormalizationDescriptor &, const ConstTensor &, const ConstTensor &, const ConstTensor &, const ConstTensor &, const char *) override
 Function that a batch normalization layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitBatchToSpaceNdLayer (const IConnectableLayer *, const BatchToSpaceNdDescriptor &, const char *) override
 Function that a batch to space ND layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitComparisonLayer (const IConnectableLayer *, const ComparisonDescriptor &, const char *) override
 Function a Comparison layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitConcatLayer (const IConnectableLayer *, const ConcatDescriptor &, const char *) override
 Function that a concat layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitConstantLayer (const IConnectableLayer *, const ConstTensor &, const char *) override
 Function a layer with no inputs and a single output, which always corresponds to the passed in constant tensor should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitConvolution2dLayer (const IConnectableLayer *, const Convolution2dDescriptor &, const ConstTensor &, const Optional< ConstTensor > &, const char *) override
 Function that a 2D convolution layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitDepthToSpaceLayer (const IConnectableLayer *, const DepthToSpaceDescriptor &, const char *) override
 Function a depth to space layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitDepthwiseConvolution2dLayer (const IConnectableLayer *, const DepthwiseConvolution2dDescriptor &, const ConstTensor &, const Optional< ConstTensor > &, const char *) override
 Function that a 2D depthwise convolution layer with biases should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitDequantizeLayer (const IConnectableLayer *, const char *) override
 Function that a Dequantize layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitDetectionPostProcessLayer (const IConnectableLayer *, const DetectionPostProcessDescriptor &, const ConstTensor &, const char *) override
 Function that a Detection PostProcess layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitDivisionLayer (const IConnectableLayer *, const char *) override
 Function a division layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitElementwiseUnaryLayer (const IConnectableLayer *, const ElementwiseUnaryDescriptor &, const char *) override
 Function a ElementwiseUnary layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitEqualLayer (const IConnectableLayer *, const char *) override
 Function an Equal layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitFillLayer (const IConnectableLayer *, const FillDescriptor &, const char *) override
 Function a fill layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitFloorLayer (const IConnectableLayer *, const char *) override
 Function a floor layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitFullyConnectedLayer (const IConnectableLayer *, const FullyConnectedDescriptor &, const ConstTensor &, const Optional< ConstTensor > &, const char *) override
 Function that a fully connected layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitGatherLayer (const IConnectableLayer *, const char *) override
 Function a Gather layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitGatherLayer (const IConnectableLayer *, const GatherDescriptor &, const char *) override
 Function a Gather layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitGreaterLayer (const IConnectableLayer *, const char *) override
 Function a Greater layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitInputLayer (const IConnectableLayer *, LayerBindingId, const char *) override
 Function that an InputLayer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitInstanceNormalizationLayer (const IConnectableLayer *, const InstanceNormalizationDescriptor &, const char *) override
 Function that an instance normalization layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitL2NormalizationLayer (const IConnectableLayer *, const L2NormalizationDescriptor &, const char *) override
 Function that an L2 normalization layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitLogSoftmaxLayer (const IConnectableLayer *, const LogSoftmaxDescriptor &, const char *) override
 Function that a log softmax layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitLogicalBinaryLayer (const IConnectableLayer *, const LogicalBinaryDescriptor &, const char *) override
 Function that a logical binary layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitLstmLayer (const IConnectableLayer *, const LstmDescriptor &, const LstmInputParams &, const char *) override
 Function an Lstm layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitMaximumLayer (const IConnectableLayer *, const char *) override
 Function a Maximum layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitMeanLayer (const IConnectableLayer *, const MeanDescriptor &, const char *) override
 Function a Mean layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitMergeLayer (const IConnectableLayer *, const char *) override
 Function that a merge layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitMergerLayer (const IConnectableLayer *, const MergerDescriptor &, const char *) override
 Function that a merger layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitMinimumLayer (const IConnectableLayer *, const char *) override
 Function a Minimum layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitMultiplicationLayer (const IConnectableLayer *, const char *) override
 Function that a multiplication layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitNormalizationLayer (const IConnectableLayer *, const NormalizationDescriptor &, const char *) override
 Function that a normalization layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitOutputLayer (const IConnectableLayer *, LayerBindingId, const char *) override
 Function an output layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitPadLayer (const IConnectableLayer *, const PadDescriptor &, const char *) override
 Function a pad layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitPermuteLayer (const IConnectableLayer *, const PermuteDescriptor &, const char *) override
 Function that a permute layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitPooling2dLayer (const IConnectableLayer *, const Pooling2dDescriptor &, const char *) override
 Function that a pooling layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitPreluLayer (const IConnectableLayer *, const char *) override
 Function that a PReLU activation layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitQuantizeLayer (const IConnectableLayer *, const char *) override
 Function a quantize layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitQLstmLayer (const IConnectableLayer *, const QLstmDescriptor &, const LstmInputParams &, const char *) override
 Function a QLstm layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitQuantizedLstmLayer (const IConnectableLayer *, const QuantizedLstmInputParams &, const char *) override
 Function a QuantizedLstm layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitRankLayer (const IConnectableLayer *, const char *) override
 Function a rank layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitReduceLayer (const IConnectableLayer *, const ReduceDescriptor &, const char *) override
 Function that a reduce layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitReshapeLayer (const IConnectableLayer *, const ReshapeDescriptor &, const char *) override
 Function a reshape layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitResizeBilinearLayer (const IConnectableLayer *, const ResizeBilinearDescriptor &, const char *) override
 Function that a resize bilinear layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitResizeLayer (const IConnectableLayer *, const ResizeDescriptor &, const char *) override
 Function that a resize layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitRsqrtLayer (const IConnectableLayer *, const char *) override
 Function a Reciprocal of square root layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitSliceLayer (const IConnectableLayer *, const SliceDescriptor &, const char *) override
 Function that a slice layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitSoftmaxLayer (const IConnectableLayer *, const SoftmaxDescriptor &, const char *) override
 Function that a softmax layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitSpaceToBatchNdLayer (const IConnectableLayer *, const SpaceToBatchNdDescriptor &, const char *) override
 Function a space to batch layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitSpaceToDepthLayer (const IConnectableLayer *, const SpaceToDepthDescriptor &, const char *) override
 Function a space to depth layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitSplitterLayer (const IConnectableLayer *, const ViewsDescriptor &, const char *) override
 Function that a splitter layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitStackLayer (const IConnectableLayer *, const StackDescriptor &, const char *) override
 Function a stack layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitStandInLayer (const IConnectableLayer *, const StandInDescriptor &, const char *) override
 Function a StandInLayer should call back to when its Accept(ILaterVisitor&) function is invoked. More...
 
void VisitStridedSliceLayer (const IConnectableLayer *, const StridedSliceDescriptor &, const char *) override
 Function a strided slice layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitSubtractionLayer (const IConnectableLayer *, const char *) override
 Function a subtraction layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitSwitchLayer (const IConnectableLayer *, const char *) override
 Function a switch layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitTransposeConvolution2dLayer (const IConnectableLayer *, const TransposeConvolution2dDescriptor &, const ConstTensor &, const Optional< ConstTensor > &, const char *) override
 Function that a 2D transpose convolution layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
void VisitTransposeLayer (const IConnectableLayer *, const TransposeDescriptor &, const char *) override
 Function that a transpose layer should call back to when its Accept(ILayerVisitor&) function is invoked. More...
 
- Public Member Functions inherited from ILayerVisitor
virtual void StartVisit ()
 
virtual void FinishVisit ()
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

void CheckDescriptor (const QLstmDescriptor &descriptor)
 
void CheckInputParameters (const LstmInputParams &inputParams)
 
void CheckConstTensorPtrs (const std::string &name, const ConstTensor *expected, const ConstTensor *actual)
 
- Protected Member Functions inherited from TestLayerVisitor
virtual ~TestLayerVisitor ()
 
void CheckLayerName (const char *name)
 
void CheckLayerPointer (const IConnectableLayer *layer)
 
void CheckConstTensors (const ConstTensor &expected, const ConstTensor &actual)
 
void CheckOptionalConstTensors (const Optional< ConstTensor > &expected, const Optional< ConstTensor > &actual)
 
- Protected Member Functions inherited from LayerVisitorBase< VisitorNoThrowPolicy >
 LayerVisitorBase ()
 
virtual ~LayerVisitorBase ()
 
- Protected Member Functions inherited from ILayerVisitor
 ILayerVisitor ()
 
virtual ~ILayerVisitor ()
 
+

Detailed Description

+
+

Definition at line 224 of file ConstTensorLayerVisitor.hpp.

+

Constructor & Destructor Documentation

+ +

◆ TestQLstmLayerVisitor()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
TestQLstmLayerVisitor (const QLstmDescriptordescriptor,
const LstmInputParamsparams,
const char * name = nullptr 
)
+
+inlineexplicit
+
+ +

Definition at line 227 of file ConstTensorLayerVisitor.hpp.

+
230  : TestLayerVisitor(name)
231  , m_Descriptor(descriptor)
232  , m_InputParams(params)
233  {}
TestLayerVisitor(const char *name)
+
+
+
+

Member Function Documentation

+ +

◆ CheckConstTensorPtrs()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
void CheckConstTensorPtrs (const std::string & name,
const ConstTensorexpected,
const ConstTensoractual 
)
+
+protected
+
+ +

Definition at line 110 of file ConstTensorLayerVisitor.cpp.

+ +

References TestLayerVisitor::CheckConstTensors().

+
113 {
114  if (expected == nullptr)
115  {
116  BOOST_CHECK_MESSAGE(actual == nullptr, name + " actual should have been a nullptr");
117  }
118  else
119  {
120  BOOST_CHECK_MESSAGE(actual != nullptr, name + " actual should have been set");
121  if (actual != nullptr)
122  {
123  CheckConstTensors(*expected, *actual);
124  }
125  }
126 }
void CheckConstTensors(const ConstTensor &expected, const ConstTensor &actual)
+
+
+
+ +

◆ CheckDescriptor()

+ +
+
+ + + + + +
+ + + + + + + + +
void CheckDescriptor (const QLstmDescriptordescriptor)
+
+protected
+
+ +

Definition at line 128 of file ConstTensorLayerVisitor.cpp.

+ +

References QLstmDescriptor::m_CellClip, QLstmDescriptor::m_CifgEnabled, QLstmDescriptor::m_PeepholeEnabled, QLstmDescriptor::m_ProjectionClip, and QLstmDescriptor::m_ProjectionEnabled.

+
129 {
130  BOOST_CHECK(m_Descriptor.m_CellClip == descriptor.m_CellClip);
131  BOOST_CHECK(m_Descriptor.m_ProjectionClip == descriptor.m_ProjectionClip);
132  BOOST_CHECK(m_Descriptor.m_CifgEnabled == descriptor.m_CifgEnabled);
133  BOOST_CHECK(m_Descriptor.m_PeepholeEnabled == descriptor.m_PeepholeEnabled);
134  BOOST_CHECK(m_Descriptor.m_ProjectionEnabled == descriptor.m_ProjectionEnabled);
135 }
bool m_PeepholeEnabled
Enable/disable peephole.
+
float m_ProjectionClip
Clipping threshold value for the projection.
+
float m_CellClip
Clipping threshold value for the cell state.
+
bool m_ProjectionEnabled
Enable/disable the projection layer.
+
bool m_CifgEnabled
Enable/disable CIFG (coupled input & forget gate).
+
+
+
+ +

◆ CheckInputParameters()

+ +
+
+ + + + + +
+ + + + + + + + +
void CheckInputParameters (const LstmInputParamsinputParams)
+
+protected
+
+ +

Definition at line 137 of file ConstTensorLayerVisitor.cpp.

+ +

References LstmInputParams::m_CellBias, LstmInputParams::m_CellLayerNormWeights, LstmInputParams::m_CellToForgetWeights, LstmInputParams::m_CellToInputWeights, LstmInputParams::m_CellToOutputWeights, LstmInputParams::m_ForgetGateBias, LstmInputParams::m_ForgetLayerNormWeights, LstmInputParams::m_InputGateBias, LstmInputParams::m_InputLayerNormWeights, LstmInputParams::m_InputToCellWeights, LstmInputParams::m_InputToForgetWeights, LstmInputParams::m_InputToInputWeights, LstmInputParams::m_InputToOutputWeights, LstmInputParams::m_OutputGateBias, LstmInputParams::m_OutputLayerNormWeights, LstmInputParams::m_ProjectionBias, LstmInputParams::m_ProjectionWeights, LstmInputParams::m_RecurrentToCellWeights, LstmInputParams::m_RecurrentToForgetWeights, LstmInputParams::m_RecurrentToInputWeights, and LstmInputParams::m_RecurrentToOutputWeights.

+
138 {
139  CheckConstTensorPtrs("InputToInputWeights",
140  m_InputParams.m_InputToInputWeights,
141  inputParams.m_InputToInputWeights);
142 
143  CheckConstTensorPtrs("InputToForgetWeights",
144  m_InputParams.m_InputToForgetWeights,
145  inputParams.m_InputToForgetWeights);
146 
147  CheckConstTensorPtrs("InputToCellWeights",
148  m_InputParams.m_InputToCellWeights,
149  inputParams.m_InputToCellWeights);
150 
151  CheckConstTensorPtrs("InputToOutputWeights",
152  m_InputParams.m_InputToOutputWeights,
153  inputParams.m_InputToOutputWeights);
154 
155  CheckConstTensorPtrs("RecurrentToInputWeights",
156  m_InputParams.m_RecurrentToInputWeights,
157  inputParams.m_RecurrentToInputWeights);
158 
159  CheckConstTensorPtrs("RecurrentToForgetWeights",
160  m_InputParams.m_RecurrentToForgetWeights,
161  inputParams.m_RecurrentToForgetWeights);
162 
163  CheckConstTensorPtrs("RecurrentToCellWeights",
164  m_InputParams.m_RecurrentToCellWeights,
165  inputParams.m_RecurrentToCellWeights);
166 
167  CheckConstTensorPtrs("RecurrentToOutputWeights",
168  m_InputParams.m_RecurrentToOutputWeights,
169  inputParams.m_RecurrentToOutputWeights);
170 
171  CheckConstTensorPtrs("CellToInputWeights",
172  m_InputParams.m_CellToInputWeights,
173  inputParams.m_CellToInputWeights);
174 
175  CheckConstTensorPtrs("CellToForgetWeights",
176  m_InputParams.m_CellToForgetWeights,
177  inputParams.m_CellToForgetWeights);
178 
179  CheckConstTensorPtrs("CellToOutputWeights",
180  m_InputParams.m_CellToOutputWeights,
181  inputParams.m_CellToOutputWeights);
182 
183  CheckConstTensorPtrs("ProjectionWeights", m_InputParams.m_ProjectionWeights, inputParams.m_ProjectionWeights);
184  CheckConstTensorPtrs("ProjectionBias", m_InputParams.m_ProjectionBias, inputParams.m_ProjectionBias);
185 
186  CheckConstTensorPtrs("InputGateBias", m_InputParams.m_InputGateBias, inputParams.m_InputGateBias);
187  CheckConstTensorPtrs("ForgetGateBias", m_InputParams.m_ForgetGateBias, inputParams.m_ForgetGateBias);
188  CheckConstTensorPtrs("CellBias", m_InputParams.m_CellBias, inputParams.m_CellBias);
189  CheckConstTensorPtrs("OutputGateBias", m_InputParams.m_OutputGateBias, inputParams.m_OutputGateBias);
190 
191  CheckConstTensorPtrs("InputLayerNormWeights",
192  m_InputParams.m_InputLayerNormWeights,
193  inputParams.m_InputLayerNormWeights);
194 
195  CheckConstTensorPtrs("ForgetLayerNormWeights",
196  m_InputParams.m_ForgetLayerNormWeights,
197  inputParams.m_ForgetLayerNormWeights);
198 
199  CheckConstTensorPtrs("CellLayerNormWeights",
200  m_InputParams.m_CellLayerNormWeights,
201  inputParams.m_CellLayerNormWeights);
202 
203  CheckConstTensorPtrs("OutputLayerNormWeights",
204  m_InputParams.m_OutputLayerNormWeights,
205  inputParams.m_OutputLayerNormWeights);
206 }
const ConstTensor * m_ProjectionWeights
Definition: LstmParams.hpp:55
+
const ConstTensor * m_CellBias
Definition: LstmParams.hpp:53
+
const ConstTensor * m_CellToOutputWeights
Definition: LstmParams.hpp:50
+
const ConstTensor * m_CellToInputWeights
Definition: LstmParams.hpp:48
+
const ConstTensor * m_InputGateBias
Definition: LstmParams.hpp:51
+
const ConstTensor * m_RecurrentToCellWeights
Definition: LstmParams.hpp:46
+
const ConstTensor * m_ForgetLayerNormWeights
Definition: LstmParams.hpp:58
+
const ConstTensor * m_CellToForgetWeights
Definition: LstmParams.hpp:49
+
const ConstTensor * m_OutputGateBias
Definition: LstmParams.hpp:54
+
const ConstTensor * m_InputLayerNormWeights
Definition: LstmParams.hpp:57
+
const ConstTensor * m_RecurrentToOutputWeights
Definition: LstmParams.hpp:47
+
const ConstTensor * m_ProjectionBias
Definition: LstmParams.hpp:56
+
const ConstTensor * m_CellLayerNormWeights
Definition: LstmParams.hpp:59
+
const ConstTensor * m_ForgetGateBias
Definition: LstmParams.hpp:52
+
const ConstTensor * m_InputToCellWeights
Definition: LstmParams.hpp:42
+
const ConstTensor * m_InputToOutputWeights
Definition: LstmParams.hpp:43
+
const ConstTensor * m_RecurrentToForgetWeights
Definition: LstmParams.hpp:45
+
const ConstTensor * m_RecurrentToInputWeights
Definition: LstmParams.hpp:44
+
void CheckConstTensorPtrs(const std::string &name, const ConstTensor *expected, const ConstTensor *actual)
+
const ConstTensor * m_OutputLayerNormWeights
Definition: LstmParams.hpp:60
+
const ConstTensor * m_InputToForgetWeights
Definition: LstmParams.hpp:41
+
const ConstTensor * m_InputToInputWeights
Definition: LstmParams.hpp:40
+
+
+
+ +

◆ VisitQLstmLayer()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void VisitQLstmLayer (const IConnectableLayerlayer,
const QLstmDescriptordescriptor,
const LstmInputParamsparams,
const char * name = nullptr 
)
+
+inlinevirtual
+
+ +

Function a QLstm layer should call back to when its Accept(ILayerVisitor&) function is invoked.

+
Parameters
+ + + + + +
layer- pointer to the layer which is calling back to this visit function.
descriptor- Parameters controlling the operation of the QLstm operation.
params- The weights and biases for the layer
name- Optional name for the layer.
+
+
+ +

Implements ILayerVisitor.

+ +

Definition at line 235 of file ConstTensorLayerVisitor.hpp.

+ +

References TestConvolution2dLayerVisitor::CheckDescriptor(), TestLayerVisitor::CheckLayerName(), and TestLayerVisitor::CheckLayerPointer().

+
239  {
240  CheckLayerPointer(layer);
241  CheckLayerName(name);
242  CheckDescriptor(descriptor);
243  CheckInputParameters(params);
244  }
void CheckDescriptor(const QLstmDescriptor &descriptor)
+
void CheckLayerName(const char *name)
+
void CheckLayerPointer(const IConnectableLayer *layer)
+
void CheckInputParameters(const LstmInputParams &inputParams)
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1