diff options
Diffstat (limited to 'src/profiling/test')
-rw-r--r-- | src/profiling/test/FileOnlyProfilingDecoratorTests.cpp | 8 | ||||
-rw-r--r-- | src/profiling/test/ProfilingTestUtils.cpp | 8 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp b/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp index 0d6f8422fc..a96de66ecd 100644 --- a/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp +++ b/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp @@ -90,9 +90,11 @@ TEST_CASE("TestFileOnlyProfiling") outputData[i] = 3.0; } + TensorInfo inputTensorInfo = runtime.GetInputTensorInfo(netId, 0); + inputTensorInfo.SetConstant(true); InputTensors inputTensors { - {0, ConstTensor(runtime.GetInputTensorInfo(netId, 0), inputData.data())} + {0, ConstTensor(inputTensorInfo, inputData.data())} }; OutputTensors outputTensors { @@ -213,9 +215,11 @@ TEST_CASE("DumpOutgoingValidFileEndToEnd") outputData[i] = 3.0; } + TensorInfo inputTensorInfo = runtime.GetInputTensorInfo(netId, 0); + inputTensorInfo.SetConstant(true); InputTensors inputTensors { - {0, ConstTensor(runtime.GetInputTensorInfo(netId, 0), inputData.data())} + {0, ConstTensor(inputTensorInfo, inputData.data())} }; OutputTensors outputTensors { diff --git a/src/profiling/test/ProfilingTestUtils.cpp b/src/profiling/test/ProfilingTestUtils.cpp index 79b8ea41da..e0d3dd717c 100644 --- a/src/profiling/test/ProfilingTestUtils.cpp +++ b/src/profiling/test/ProfilingTestUtils.cpp @@ -381,8 +381,8 @@ void VerifyPostOptimisationStructureTestImpl(armnn::BackendId backendId) // Convolution details TensorInfo inputInfo({ 1, 2, 5, 1 }, DataType::Float32); - TensorInfo weightInfo({ 3, 2, 3, 1 }, DataType::Float32); - TensorInfo biasInfo({ 3 }, DataType::Float32); + TensorInfo weightInfo({ 3, 2, 3, 1 }, DataType::Float32, 0.0f, 0, true); + TensorInfo biasInfo({ 3 }, DataType::Float32, 0.0f, 0, true); TensorInfo outputInfo({ 1, 3, 7, 1 }, DataType::Float32); std::vector<float> weightsData{ 1.0f, 0.0f, 0.0f, @@ -742,9 +742,11 @@ void VerifyPostOptimisationStructureTestImpl(armnn::BackendId backendId) std::vector<float> inputData(inputInfo.GetNumElements()); std::vector<float> outputData(outputInfo.GetNumElements()); + TensorInfo inputTensorInfo = runtime.GetInputTensorInfo(netId, 0); + inputTensorInfo.SetConstant(true); InputTensors inputTensors { - {0, ConstTensor(runtime.GetInputTensorInfo(netId, 0), inputData.data())} + {0, ConstTensor(inputTensorInfo, inputData.data())} }; OutputTensors outputTensors { |