blob: 09a34c2d024bc70de4de08965df0b62e06dd08d2 [file] [log] [blame]
telsoa01c577f2c2018-08-31 09:22:23 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa01c577f2c2018-08-31 09:22:23 +01004//
5
arovir019e53a352018-08-31 15:26:35 +01006#include "ClLstmFloatWorkload.hpp"
telsoa01c577f2c2018-08-31 09:22:23 +01007#include "backends/ClTensorHandle.hpp"
8#include "backends/CpuTensorHandle.hpp"
9#include "backends/ArmComputeTensorUtils.hpp"
10#include "backends/ClLayerSupport.hpp"
Matthew Bentham14e46692018-09-20 15:35:30 +010011
12#include <arm_compute/runtime/CL/functions/CLLSTMLayer.h>
13
14#include "ClWorkloadUtils.hpp"
telsoa01c577f2c2018-08-31 09:22:23 +010015
16namespace armnn
17{
18using namespace armcomputetensorutils;
19
arovir019e53a352018-08-31 15:26:35 +010020ClLstmFloatWorkload::ClLstmFloatWorkload(const LstmQueueDescriptor &descriptor, const WorkloadInfo &info)
telsoa01c577f2c2018-08-31 09:22:23 +010021 : FloatWorkload<LstmQueueDescriptor>(descriptor, info)
22{
23 arm_compute::LSTMParams<arm_compute::ICLTensor> lstm_param;
24
25 // Basic parameters
26 m_InputToForgetWeightsTensor = std::make_unique<arm_compute::CLTensor>();
27 BuildArmComputeTensor(*m_InputToForgetWeightsTensor, m_Data.m_InputToForgetWeights->GetTensorInfo());
28
29 m_InputToCellWeightsTensor = std::make_unique<arm_compute::CLTensor>();
30 BuildArmComputeTensor(*m_InputToCellWeightsTensor, m_Data.m_InputToCellWeights->GetTensorInfo());
31
32 m_InputToOutputWeightsTensor = std::make_unique<arm_compute::CLTensor>();
33 BuildArmComputeTensor(*m_InputToOutputWeightsTensor, m_Data.m_InputToOutputWeights->GetTensorInfo());
34
35 m_RecurrentToForgetWeightsTensor = std::make_unique<arm_compute::CLTensor>();
36 BuildArmComputeTensor(*m_RecurrentToForgetWeightsTensor, m_Data.m_RecurrentToForgetWeights->GetTensorInfo());
37
38 m_RecurrentToCellWeightsTensor = std::make_unique<arm_compute::CLTensor>();
39 BuildArmComputeTensor(*m_RecurrentToCellWeightsTensor, m_Data.m_RecurrentToCellWeights->GetTensorInfo());
40
41 m_RecurrentToOutputWeightsTensor = std::make_unique<arm_compute::CLTensor>();
42 BuildArmComputeTensor(*m_RecurrentToOutputWeightsTensor, m_Data.m_RecurrentToOutputWeights->GetTensorInfo());
43
44 m_ForgetGateBiasTensor = std::make_unique<arm_compute::CLTensor>();
45 BuildArmComputeTensor(*m_ForgetGateBiasTensor, m_Data.m_ForgetGateBias->GetTensorInfo());
46
47 m_CellBiasTensor = std::make_unique<arm_compute::CLTensor>();
48 BuildArmComputeTensor(*m_CellBiasTensor, m_Data.m_CellBias->GetTensorInfo());
49
50 m_OutputGateBiasTensor = std::make_unique<arm_compute::CLTensor>();
51 BuildArmComputeTensor(*m_OutputGateBiasTensor, m_Data.m_OutputGateBias->GetTensorInfo());
52
53 // for future reference: check the AndroidNN API for the logic here
54 if (!m_Data.m_Parameters.m_CifgEnabled)
55 {
56 m_InputToInputWeightsTensor = std::make_unique<arm_compute::CLTensor>();
57 BuildArmComputeTensor(*m_InputToInputWeightsTensor, m_Data.m_InputToInputWeights->GetTensorInfo());
58
59 m_RecurrentToInputWeightsTensor = std::make_unique<arm_compute::CLTensor>();
60 BuildArmComputeTensor(*m_RecurrentToInputWeightsTensor, m_Data.m_RecurrentToInputWeights->GetTensorInfo());
61
62 m_CellToInputWeightsTensor = std::make_unique<arm_compute::CLTensor>();
63 if (m_Data.m_CellToInputWeights != nullptr)
64 {
65 BuildArmComputeTensor(*m_CellToInputWeightsTensor, m_Data.m_CellToInputWeights->GetTensorInfo());
66 }
67
68 m_InputGateBiasTensor = std::make_unique<arm_compute::CLTensor>();
69 BuildArmComputeTensor(*m_InputGateBiasTensor, m_Data.m_InputGateBias->GetTensorInfo());
70
71 lstm_param.set_cifg_params(m_InputToInputWeightsTensor.get(),
72 m_RecurrentToInputWeightsTensor.get(),
73 m_Data.m_CellToInputWeights != nullptr ? m_CellToInputWeightsTensor.get() : nullptr,
74 m_InputGateBiasTensor.get());
75 }
76
77 if (m_Data.m_Parameters.m_ProjectionEnabled)
78 {
79 m_ProjectionWeightsTensor = std::make_unique<arm_compute::CLTensor>();
80 BuildArmComputeTensor(*m_ProjectionWeightsTensor, m_Data.m_ProjectionWeights->GetTensorInfo());
81
82 m_ProjectionBiasTensor = std::make_unique<arm_compute::CLTensor>();
83 if (m_Data.m_ProjectionBias != nullptr)
84 {
85 BuildArmComputeTensor(*m_ProjectionBiasTensor, m_Data.m_ProjectionBias->GetTensorInfo());
86 }
87
88 lstm_param.set_projection_params(m_ProjectionWeightsTensor.get(),
89 m_Data.m_ProjectionBias != nullptr ? m_ProjectionBiasTensor.get() : nullptr);
90 }
91
92 if (m_Data.m_Parameters.m_PeepholeEnabled)
93 {
94 m_CellToForgetWeightsTensor = std::make_unique<arm_compute::CLTensor>();
95 BuildArmComputeTensor(*m_CellToForgetWeightsTensor, m_Data.m_CellToForgetWeights->GetTensorInfo());
96
97 m_CellToOutputWeightsTensor = std::make_unique<arm_compute::CLTensor>();
98 BuildArmComputeTensor(*m_CellToOutputWeightsTensor, m_Data.m_CellToOutputWeights->GetTensorInfo());
99
100 lstm_param.set_peephole_params(m_CellToForgetWeightsTensor.get(), m_CellToOutputWeightsTensor.get());
101 }
102
103 const arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
104 const arm_compute::ICLTensor& output_state_in = static_cast<IClTensorHandle*>(m_Data.m_Inputs[1])->GetTensor();
105 const arm_compute::ICLTensor& cell_state_in = static_cast<IClTensorHandle*>(m_Data.m_Inputs[2])->GetTensor();
106
107 arm_compute::ICLTensor& output_state_out = static_cast<IClTensorHandle*>(m_Data.m_Outputs[1])->GetTensor();
108 arm_compute::ICLTensor& cell_state_out = static_cast<IClTensorHandle*>(m_Data.m_Outputs[2])->GetTensor();
109 arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[3])->GetTensor();
110
111 // Get the batch_size and the num_units from the cellStateIn dimensions
112 const TensorInfo& inputTensorInfo = info.m_InputTensorInfos[2];
113 const unsigned int batch_size = boost::numeric_cast<unsigned int>(inputTensorInfo.GetShape()[0]);
114 const unsigned int num_units = boost::numeric_cast<unsigned int>(inputTensorInfo.GetShape()[1]);
115
116 m_ScratchBuffer = std::make_unique<arm_compute::CLTensor>();
117 if (m_Data.m_Parameters.m_CifgEnabled)
118 {
119 // 2D tensor with dimensions [num_units * 4, batch_size] with CIFG
120 armnn::TensorInfo scratchBuffer1({ batch_size, num_units * 4 }, DataType::Float32);
121 BuildArmComputeTensor(*m_ScratchBuffer, scratchBuffer1);
122 }
123 else
124 {
125 // scratch_buffer [num_units * 3, batch_size] without CIFG
126 armnn::TensorInfo scratchBuffer2({ batch_size, num_units * 3 }, DataType::Float32);
127 BuildArmComputeTensor(*m_ScratchBuffer, scratchBuffer2);
128 }
129
130 float cell_threshold = m_Data.m_Parameters.m_ClippingThresCell;
131 float projection_threshold = m_Data.m_Parameters.m_ClippingThresProj;
132
133 // for preparing the object for the class ActivationLayerInfo, we need to consider 5 situations
134 arm_compute::ActivationLayerInfo activationLayerInfo;
135 if (m_Data.m_Parameters.m_ActivationFunc == 0)
136 {
137 // no activation, do nothing
138 }
139 else if (m_Data.m_Parameters.m_ActivationFunc == 1)
140 {
141 activationLayerInfo = arm_compute::ActivationLayerInfo(
142 arm_compute::ActivationLayerInfo::ActivationFunction::RELU);
143 }
144 else if (m_Data.m_Parameters.m_ActivationFunc == 3)
145 {
146 activationLayerInfo = arm_compute::ActivationLayerInfo(
147 arm_compute::ActivationLayerInfo::ActivationFunction::BOUNDED_RELU, 6.0);
148 }
149 else if (m_Data.m_Parameters.m_ActivationFunc == 4)
150 {
151 activationLayerInfo = arm_compute::ActivationLayerInfo(
152 arm_compute::ActivationLayerInfo::ActivationFunction::TANH, 1.0, 1.0);
153 }
154 else if (m_Data.m_Parameters.m_ActivationFunc == 6)
155 {
156 activationLayerInfo = arm_compute::ActivationLayerInfo(
157 arm_compute::ActivationLayerInfo::ActivationFunction::LOGISTIC);
158 }
159 else
160 {
161 throw armnn::Exception("Wrong Type of Activation Function!");
162 }
163
164
165 m_LstmLayer.configure(&input, m_InputToForgetWeightsTensor.get(), m_InputToCellWeightsTensor.get(),
166 m_InputToOutputWeightsTensor.get(), m_RecurrentToForgetWeightsTensor.get(),
167 m_RecurrentToCellWeightsTensor.get(), m_RecurrentToOutputWeightsTensor.get(),
168 m_ForgetGateBiasTensor.get(), m_CellBiasTensor.get(), m_OutputGateBiasTensor.get(),
169 &output_state_in, &cell_state_in, m_ScratchBuffer.get(), &output_state_out,
170 &cell_state_out, &output, lstm_param, activationLayerInfo,
171 cell_threshold, projection_threshold);
172
173 armcomputetensorutils::InitialiseArmComputeTensorEmpty(*m_ScratchBuffer);
174
175 InitialiseArmComputeClTensorData(*m_InputToForgetWeightsTensor,
176 m_Data.m_InputToForgetWeights->GetConstTensor<float>());
177 InitialiseArmComputeClTensorData(*m_InputToCellWeightsTensor,
178 m_Data.m_InputToCellWeights->GetConstTensor<float>());
179 InitialiseArmComputeClTensorData(*m_InputToOutputWeightsTensor,
180 m_Data.m_InputToOutputWeights->GetConstTensor<float>());
181 InitialiseArmComputeClTensorData(*m_RecurrentToForgetWeightsTensor,
182 m_Data.m_RecurrentToForgetWeights->GetConstTensor<float>());
183 InitialiseArmComputeClTensorData(*m_RecurrentToCellWeightsTensor,
184 m_Data.m_RecurrentToCellWeights->GetConstTensor<float>());
185 InitialiseArmComputeClTensorData(*m_RecurrentToOutputWeightsTensor,
186 m_Data.m_RecurrentToOutputWeights->GetConstTensor<float>());
187 InitialiseArmComputeClTensorData(*m_ForgetGateBiasTensor,
188 m_Data.m_ForgetGateBias->GetConstTensor<float>());
189 InitialiseArmComputeClTensorData(*m_CellBiasTensor,
190 m_Data.m_CellBias->GetConstTensor<float>());
191 InitialiseArmComputeClTensorData(*m_OutputGateBiasTensor,
192 m_Data.m_OutputGateBias->GetConstTensor<float>());
193
194 if (!m_Data.m_Parameters.m_CifgEnabled)
195 {
196 InitialiseArmComputeClTensorData(*m_InputToInputWeightsTensor,
197 m_Data.m_InputToInputWeights->GetConstTensor<float>());
198 InitialiseArmComputeClTensorData(*m_RecurrentToInputWeightsTensor,
199 m_Data.m_RecurrentToInputWeights->GetConstTensor<float>());
200 if (m_Data.m_CellToInputWeights != nullptr)
201 {
202 InitialiseArmComputeClTensorData(*m_CellToInputWeightsTensor,
203 m_Data.m_CellToInputWeights->GetConstTensor<float>());
204 }
205 InitialiseArmComputeClTensorData(*m_InputGateBiasTensor,
206 m_Data.m_InputGateBias->GetConstTensor<float>());
207 }
208
209 if (m_Data.m_Parameters.m_ProjectionEnabled)
210 {
211 InitialiseArmComputeClTensorData(*m_ProjectionWeightsTensor,
212 m_Data.m_ProjectionWeights->GetConstTensor<float>());
213 if (m_Data.m_ProjectionBias != nullptr)
214 {
215 InitialiseArmComputeClTensorData(*m_ProjectionBiasTensor,
216 m_Data.m_ProjectionBias->GetConstTensor<float>());
217 }
218 }
219
220 if (m_Data.m_Parameters.m_PeepholeEnabled)
221 {
222 InitialiseArmComputeClTensorData(*m_CellToForgetWeightsTensor,
223 m_Data.m_CellToForgetWeights->GetConstTensor<float>());
224 InitialiseArmComputeClTensorData(*m_CellToOutputWeightsTensor,
225 m_Data.m_CellToOutputWeights->GetConstTensor<float>());
226 }
227
228 // Force Compute Library to perform the necessary copying and reshaping, after which
229 // delete all the input tensors that will no longer be needed
230 m_LstmLayer.prepare();
231 FreeUnusedTensors();
232}
233
arovir019e53a352018-08-31 15:26:35 +0100234void ClLstmFloatWorkload::Execute() const
telsoa01c577f2c2018-08-31 09:22:23 +0100235{
236 m_LstmLayer.run();
237}
238
arovir019e53a352018-08-31 15:26:35 +0100239arm_compute::Status ClLstmFloatWorkloadValidate(const TensorInfo& input, const TensorInfo& outputStateIn,
240 const TensorInfo& cellStateIn, const TensorInfo& scratchBuffer,
241 const TensorInfo& outputStateOut, const TensorInfo& cellStateOut,
242 const TensorInfo& output, const LstmDescriptor& descriptor,
243 const TensorInfo& inputToForgetWeights,
244 const TensorInfo& inputToCellWeights,
245 const TensorInfo& inputToOutputWeights,
246 const TensorInfo& recurrentToForgetWeights,
247 const TensorInfo& recurrentToCellWeights,
248 const TensorInfo& recurrentToOutputWeights,
249 const TensorInfo& forgetGateBias, const TensorInfo& cellBias,
250 const TensorInfo& outputGateBias,
251 const TensorInfo* inputToInputWeights,
252 const TensorInfo* recurrentToInputWeights,
253 const TensorInfo* cellToInputWeights,
254 const TensorInfo* inputGateBias,
255 const TensorInfo* projectionWeights,
256 const TensorInfo* projectionBias,
257 const TensorInfo* cellToForgetWeights,
258 const TensorInfo* cellToOutputWeights)
telsoa01c577f2c2018-08-31 09:22:23 +0100259{
260 arm_compute::LSTMParams<arm_compute::ITensorInfo> lstm_params_info;
261
262 // The inputs and the outputs
263 const arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input);
264 const arm_compute::TensorInfo aclOutputStateInInfo = BuildArmComputeTensorInfo(outputStateIn);
265 const arm_compute::TensorInfo aclCellStateInInfo = BuildArmComputeTensorInfo(cellStateIn);
266 const arm_compute::TensorInfo aclScratchBufferInfo = BuildArmComputeTensorInfo(scratchBuffer);
267 const arm_compute::TensorInfo aclOutputStateOutInfo = BuildArmComputeTensorInfo(outputStateOut);
268 const arm_compute::TensorInfo aclCellStateOutInfo = BuildArmComputeTensorInfo(cellStateOut);
269 const arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output);
270
271 // Basic parameters
272 const arm_compute::TensorInfo aclInputToForgetWeightsInfo = BuildArmComputeTensorInfo(inputToForgetWeights);
273 const arm_compute::TensorInfo aclInputToCellWeightsInfo = BuildArmComputeTensorInfo(inputToCellWeights);
274 const arm_compute::TensorInfo aclInputToOutputWeightsInfo = BuildArmComputeTensorInfo(inputToOutputWeights);
275 const arm_compute::TensorInfo aclRecurrentToForgetWeightsInfo
276 = BuildArmComputeTensorInfo(recurrentToForgetWeights);
277 const arm_compute::TensorInfo aclRecurrentToCellWeightsInfo
278 = BuildArmComputeTensorInfo(recurrentToCellWeights);
279 const arm_compute::TensorInfo aclRecurrentToOutputWeightsInfo
280 = BuildArmComputeTensorInfo(recurrentToOutputWeights);
281 const arm_compute::TensorInfo aclForgetGateBiasInfo = BuildArmComputeTensorInfo(forgetGateBias);
282 const arm_compute::TensorInfo aclCellBiasInfo = BuildArmComputeTensorInfo(cellBias);
283 const arm_compute::TensorInfo aclOutputGateBiasInfo = BuildArmComputeTensorInfo(outputGateBias);
284
285 arm_compute::TensorInfo aclInputToInputWeightsInfo;
286 arm_compute::TensorInfo aclRecurrentToInputWeightsInfo;
287 arm_compute::TensorInfo aclCellToInputWeightsInfo;
288 arm_compute::TensorInfo aclInputGateBiasInfo;
289 arm_compute::TensorInfo aclProjectionWeightsInfo;
290 arm_compute::TensorInfo aclProjectionBiasInfo;
291 arm_compute::TensorInfo aclCellToForgetWeightsInfo;
292 arm_compute::TensorInfo aclCellToOutputWeightsInfo;
293
294 if (!descriptor.m_CifgEnabled)
295 {
296 armnn::TensorInfo inputToInputWInfo = *inputToInputWeights;
297 aclInputToInputWeightsInfo = BuildArmComputeTensorInfo(inputToInputWInfo);
298 armnn::TensorInfo recurrentToInputWInfo = *recurrentToInputWeights;
299 aclRecurrentToInputWeightsInfo = BuildArmComputeTensorInfo(recurrentToInputWInfo);
300
301 if (cellToInputWeights != nullptr)
302 {
303 armnn::TensorInfo cellToInputWInfo = *cellToInputWeights;
304 aclCellToInputWeightsInfo = BuildArmComputeTensorInfo(cellToInputWInfo);
305 }
306 armnn::TensorInfo inputGateBiasInfo = *inputGateBias;
307 aclInputGateBiasInfo = BuildArmComputeTensorInfo(inputGateBiasInfo);
308 lstm_params_info.set_cifg_params(&aclInputToInputWeightsInfo, &aclRecurrentToInputWeightsInfo,
309 cellToInputWeights != nullptr ? &aclCellToInputWeightsInfo: nullptr,
310 &aclInputGateBiasInfo);
311 }
312
313 if (descriptor.m_ProjectionEnabled)
314 {
315 const armnn::TensorInfo& projectionWInfo = *projectionWeights;
316 aclProjectionWeightsInfo = BuildArmComputeTensorInfo(projectionWInfo);
317
318 if (projectionBias != nullptr)
319 {
320 const armnn::TensorInfo& projectionBiasInfo = *projectionBias;
321 aclProjectionBiasInfo = BuildArmComputeTensorInfo(projectionBiasInfo);
322 }
323 lstm_params_info.set_projection_params(&aclProjectionWeightsInfo,
324 projectionBias != nullptr ? &aclProjectionBiasInfo: nullptr);
325 }
326
327 if (descriptor.m_PeepholeEnabled)
328 {
329 const armnn::TensorInfo& cellToForgetWInfo = *cellToForgetWeights;
330 aclCellToForgetWeightsInfo = BuildArmComputeTensorInfo(cellToForgetWInfo);
331 const armnn::TensorInfo& cellToOutputWInfo = *cellToOutputWeights;
332 aclCellToOutputWeightsInfo = BuildArmComputeTensorInfo(cellToOutputWInfo);
333 lstm_params_info.set_peephole_params(&aclCellToForgetWeightsInfo, &aclCellToOutputWeightsInfo);
334 }
335
336 float cell_threshold = descriptor.m_ClippingThresCell;
337 float projection_threshold = descriptor.m_ClippingThresProj;
338
339 // for preparing the object for the class ActivationLayerInfo, we need to consider 5 situations
340 arm_compute::ActivationLayerInfo activationLayerInfo;
341 if (descriptor.m_ActivationFunc == 0)
342 {
343 // no activation, do nothing
344 }
345 else if (descriptor.m_ActivationFunc == 1)
346 {
347 activationLayerInfo = arm_compute::ActivationLayerInfo(
348 arm_compute::ActivationLayerInfo::ActivationFunction::RELU);
349 }
350 else if (descriptor.m_ActivationFunc == 3)
351 {
352 activationLayerInfo = arm_compute::ActivationLayerInfo(
353 arm_compute::ActivationLayerInfo::ActivationFunction::BOUNDED_RELU, 6.0);
354 }
355 else if (descriptor.m_ActivationFunc == 4)
356 {
357 activationLayerInfo = arm_compute::ActivationLayerInfo(
358 arm_compute::ActivationLayerInfo::ActivationFunction::TANH, 1.0, 1.0);
359 }
360 else if (descriptor.m_ActivationFunc == 6)
361 {
362 activationLayerInfo = arm_compute::ActivationLayerInfo(
363 arm_compute::ActivationLayerInfo::ActivationFunction::LOGISTIC);
364 }
365 else
366 {
367 throw armnn::Exception("Wrong Type of Activation Function!");
368 }
369
370 return arm_compute::CLLSTMLayer::validate(&aclInputInfo, &aclInputToForgetWeightsInfo,
371 &aclInputToCellWeightsInfo,
372 &aclInputToOutputWeightsInfo,
373 &aclRecurrentToForgetWeightsInfo,
374 &aclRecurrentToCellWeightsInfo,
375 &aclRecurrentToOutputWeightsInfo,
376 &aclForgetGateBiasInfo,
377 &aclCellBiasInfo,
378 &aclOutputGateBiasInfo,
379 &aclOutputStateInInfo, &aclCellStateInInfo,
380 &aclScratchBufferInfo, &aclOutputStateOutInfo,
381 &aclCellStateOutInfo, &aclOutputInfo,
382 lstm_params_info, activationLayerInfo,
383 cell_threshold, projection_threshold);
384}
385
arovir019e53a352018-08-31 15:26:35 +0100386void ClLstmFloatWorkload::FreeUnusedTensors()
telsoa01c577f2c2018-08-31 09:22:23 +0100387{
388 FreeTensorIfUnused(m_InputToInputWeightsTensor);
389 FreeTensorIfUnused(m_InputToForgetWeightsTensor);
390 FreeTensorIfUnused(m_InputToCellWeightsTensor);
391 FreeTensorIfUnused(m_InputToOutputWeightsTensor);
392 FreeTensorIfUnused(m_RecurrentToInputWeightsTensor);
393 FreeTensorIfUnused(m_RecurrentToForgetWeightsTensor);
394 FreeTensorIfUnused(m_RecurrentToCellWeightsTensor);
395 FreeTensorIfUnused(m_RecurrentToOutputWeightsTensor);
396 FreeTensorIfUnused(m_CellToInputWeightsTensor);
397 FreeTensorIfUnused(m_CellToForgetWeightsTensor);
398 FreeTensorIfUnused(m_CellToOutputWeightsTensor);
399 FreeTensorIfUnused(m_InputGateBiasTensor);
400 FreeTensorIfUnused(m_ForgetGateBiasTensor);
401 FreeTensorIfUnused(m_CellBiasTensor);
402 FreeTensorIfUnused(m_OutputGateBiasTensor);
403 FreeTensorIfUnused(m_ProjectionWeightsTensor);
404 FreeTensorIfUnused(m_ProjectionBiasTensor);
405 FreeTensorIfUnused(m_ScratchBuffer);
406}
407
408} //namespace armnn