diff options
Diffstat (limited to 'src/armnnUtils')
-rw-r--r-- | src/armnnUtils/ParserPrototxtFixture.hpp | 1 | ||||
-rw-r--r-- | src/armnnUtils/TensorIOUtils.hpp | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/armnnUtils/ParserPrototxtFixture.hpp b/src/armnnUtils/ParserPrototxtFixture.hpp index 3c659d3fd6..76e65dfd8c 100644 --- a/src/armnnUtils/ParserPrototxtFixture.hpp +++ b/src/armnnUtils/ParserPrototxtFixture.hpp @@ -208,6 +208,7 @@ void ParserPrototxtFixture<TParser>::RunTest(const std::map<std::string, std::ve for (auto&& it : inputData) { armnn::BindingPointInfo bindingInfo = m_Parser->GetNetworkInputBindingInfo(it.first); + bindingInfo.second.SetConstant(true); inputTensors.push_back({ bindingInfo.first, armnn::ConstTensor(bindingInfo.second, it.second.data()) }); if (bindingInfo.second.GetNumElements() != it.second.size()) { diff --git a/src/armnnUtils/TensorIOUtils.hpp b/src/armnnUtils/TensorIOUtils.hpp index b06bb7132b..55dd3428b8 100644 --- a/src/armnnUtils/TensorIOUtils.hpp +++ b/src/armnnUtils/TensorIOUtils.hpp @@ -41,8 +41,9 @@ inline armnn::InputTensors MakeInputTensors(const std::vector<armnn::BindingPoin inputBinding.second.GetNumElements(), value.size())); } - - armnn::ConstTensor inputTensor(inputBinding.second, value.data()); + armnn::TensorInfo inputTensorInfo = inputBinding.second; + inputTensorInfo.SetConstant(true); + armnn::ConstTensor inputTensor(inputTensorInfo, value.data()); inputTensors.push_back(std::make_pair(inputBinding.first, inputTensor)); }, inputData); |