diff options
Diffstat (limited to 'src/armnn/test/optimizations/ReduceMultipleAxesTests.cpp')
-rw-r--r-- | src/armnn/test/optimizations/ReduceMultipleAxesTests.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/armnn/test/optimizations/ReduceMultipleAxesTests.cpp b/src/armnn/test/optimizations/ReduceMultipleAxesTests.cpp index 0be8857224..692f371356 100644 --- a/src/armnn/test/optimizations/ReduceMultipleAxesTests.cpp +++ b/src/armnn/test/optimizations/ReduceMultipleAxesTests.cpp @@ -94,9 +94,11 @@ void ReduceWithMultipleAxesTest(INetworkPtr& network, // Create input and output tensors std::vector<float> outputData(expectedOutput.size()); + armnn::TensorInfo inputTensorInfo = run->GetInputTensorInfo(networkIdentifier, 0); + inputTensorInfo.SetConstant(true); InputTensors inputTensors { - {0, armnn::ConstTensor(run->GetInputTensorInfo(networkIdentifier, 0), inputData.data())} + {0, armnn::ConstTensor(inputTensorInfo, inputData.data())} }; OutputTensors outputTensors { |