Guillaume GARDET
fd0141bad3
- Add additionnal gcc13 fixes: * 4cf40d7.diff * armnn-fix-gcc13-2.patch OBS-URL: https://build.opensuse.org/request/show/1080887 OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/armnn?expand=0&rev=72
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 4cf40d70f8e9da3184bb4c9b604db6a3b23d6533 Mon Sep 17 00:00:00 2001
|
|
From: Teresa Charlin <teresa.charlinreyes@arm.com>
|
|
Date: Thu, 20 Apr 2023 11:55:48 +0100
|
|
Subject: [PATCH] GitHub #723 Fix Maybe uninitialized variable
|
|
|
|
|
|
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
|
|
Change-Id: I70d3673bbb2dc113ac5eb6d63029a4a4a684e831
|
|
---
|
|
|
|
diff --git a/include/armnn/backends/Workload.hpp b/include/armnn/backends/Workload.hpp
|
|
index be6fbd9..9f7aad0 100644
|
|
--- a/include/armnn/backends/Workload.hpp
|
|
+++ b/include/armnn/backends/Workload.hpp
|
|
@@ -1,5 +1,5 @@
|
|
//
|
|
-// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
|
|
+// Copyright © 2022-2023 Arm Ltd and Contributors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
//
|
|
#pragma once
|
|
@@ -124,6 +124,8 @@
|
|
|
|
if (!info.m_InputTensorInfos.empty())
|
|
{
|
|
+ expectedInputType = info.m_InputTensorInfos.front().GetDataType();
|
|
+
|
|
if (expectedOutputType != expectedInputType)
|
|
{
|
|
ARMNN_ASSERT_MSG(false, "Trying to create workload with incorrect type");
|