aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/layers/StackLayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnn/layers/StackLayer.cpp')
-rw-r--r--src/armnn/layers/StackLayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/armnn/layers/StackLayer.cpp b/src/armnn/layers/StackLayer.cpp
index 3ebacaf3b5..3c5a216eb3 100644
--- a/src/armnn/layers/StackLayer.cpp
+++ b/src/armnn/layers/StackLayer.cpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
+// Copyright © 2019-2023 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "StackLayer.hpp"
@@ -78,7 +78,7 @@ void StackLayer::ValidateTensorShapesFromInputs()
std::vector<TensorShape> inputShapes;
for (unsigned int i = 0; i < GetNumInputSlots(); ++i)
{
- TensorShape inputShape = GetInputSlot(i).GetConnection()->GetTensorInfo().GetShape();
+ TensorShape inputShape = GetInputSlot(i).GetTensorInfo().GetShape();
if (inputShape != m_Param.m_InputShape)
{
throw LayerValidationException("StackLayer: TensorShape set on InputSlot[" +