Skip to content

Commit b9b9792

Browse files
committed
IVGCVSW-7963 Uninitialized variable error in coverity
* Reorganised WorkloadInfo members Signed-off-by: Mike Kelly <[email protected]> Change-Id: I49468ec94184782ed408b1cc8b9a319f9e2afefb
1 parent a504834 commit b9b9792

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/armnn/backends/WorkloadInfo.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ struct WorkloadInfo
1717
{
1818
std::vector<TensorInfo> m_InputTensorInfos;
1919
std::vector<TensorInfo> m_OutputTensorInfos;
20+
std::string m_Name;
2021
Optional<TensorInfo> m_WeightsTensorInfo = EmptyOptional();
2122
Optional<TensorInfo> m_BiasTensorInfo = EmptyOptional();
2223
Optional<std::string> m_ConvolutionMethod = EmptyOptional();
23-
std::string m_Name;
2424
};
2525

2626
struct MemoryInfo

src/backends/backendsCommon/test/DynamicBackendTests.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,10 +1467,10 @@ void CreateReferenceDynamicBackendTestImpl()
14671467
{
14681468
{ inputInfo, weightInfo },
14691469
{ outputInfo },
1470+
"Name",
14701471
EmptyOptional(),
14711472
EmptyOptional(),
1472-
EmptyOptional(),
1473-
"Name"
1473+
EmptyOptional()
14741474
};
14751475
convolution2dQueueDescriptor.m_Inputs.push_back(nullptr);
14761476

@@ -1553,10 +1553,10 @@ void CreateSampleDynamicBackendTestImpl()
15531553
{
15541554
{ inputInfo, inputInfo },
15551555
{ outputInfo },
1556+
"Name",
15561557
EmptyOptional(),
15571558
EmptyOptional(),
1558-
EmptyOptional(),
1559-
"Name"
1559+
EmptyOptional()
15601560
};
15611561

15621562
// Create a addition workload

0 commit comments

Comments
 (0)