Skip to content

Commit

Permalink
IVGCVSW-7963 Uninitialized variable error in coverity
Browse files Browse the repository at this point in the history
 * Reorganised WorkloadInfo members

Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Change-Id: I49468ec94184782ed408b1cc8b9a319f9e2afefb
  • Loading branch information
MikeJKelly committed Aug 9, 2023
1 parent a504834 commit b9b9792
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/armnn/backends/WorkloadInfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ struct WorkloadInfo
{
std::vector<TensorInfo> m_InputTensorInfos;
std::vector<TensorInfo> m_OutputTensorInfos;
std::string m_Name;
Optional<TensorInfo> m_WeightsTensorInfo = EmptyOptional();
Optional<TensorInfo> m_BiasTensorInfo = EmptyOptional();
Optional<std::string> m_ConvolutionMethod = EmptyOptional();
std::string m_Name;
};

struct MemoryInfo
Expand Down
8 changes: 4 additions & 4 deletions src/backends/backendsCommon/test/DynamicBackendTests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1467,10 +1467,10 @@ void CreateReferenceDynamicBackendTestImpl()
{
{ inputInfo, weightInfo },
{ outputInfo },
"Name",
EmptyOptional(),
EmptyOptional(),
EmptyOptional(),
"Name"
EmptyOptional()
};
convolution2dQueueDescriptor.m_Inputs.push_back(nullptr);

Expand Down Expand Up @@ -1553,10 +1553,10 @@ void CreateSampleDynamicBackendTestImpl()
{
{ inputInfo, inputInfo },
{ outputInfo },
"Name",
EmptyOptional(),
EmptyOptional(),
EmptyOptional(),
"Name"
EmptyOptional()
};

// Create a addition workload
Expand Down

0 comments on commit b9b9792

Please sign in to comment.