aboutsummaryrefslogtreecommitdiff
path: root/tests/TfLiteMobileNetSsd-Armnn
diff options
context:
space:
mode:
authorMatthew Bentham <matthew.bentham@arm.com>2019-04-09 13:10:46 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-04-15 15:29:37 +0000
commit3e68b97946bfee3c89ec2d4363a22550a10b2e55 (patch)
treed7d9be27aff46a18ac9442092d908223f435dcd7 /tests/TfLiteMobileNetSsd-Armnn
parent200e38039cf2cef21ae9ba6f86fab6fd524e5077 (diff)
downloadarmnn-3e68b97946bfee3c89ec2d4363a22550a10b2e55.tar.gz
IVGCVSW-2928 Fix issue with GPU profiling
Correctly enable GPU profiling when test profiling is enabled. Remove extra copy of the profiling-enabled flag from InferenceModel::Params and correctly pass around the copy that is in InferenceTestOptions. !referencetests:180329 Change-Id: I0daa1bab2e7068fc479bf417a553183b1d922166 Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Diffstat (limited to 'tests/TfLiteMobileNetSsd-Armnn')
-rw-r--r--tests/TfLiteMobileNetSsd-Armnn/TfLiteMobileNetSsd-Armnn.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/TfLiteMobileNetSsd-Armnn/TfLiteMobileNetSsd-Armnn.cpp b/tests/TfLiteMobileNetSsd-Armnn/TfLiteMobileNetSsd-Armnn.cpp
index 3328339318..06196475bf 100644
--- a/tests/TfLiteMobileNetSsd-Armnn/TfLiteMobileNetSsd-Armnn.cpp
+++ b/tests/TfLiteMobileNetSsd-Armnn/TfLiteMobileNetSsd-Armnn.cpp
@@ -40,7 +40,8 @@ int main(int argc, char* argv[])
{
return make_unique<MobileNetSsdTestCaseProvider<Model>>(
[&]
- (typename Model::CommandLineOptions modelOptions)
+ (const InferenceTestOptions& commonOptions,
+ typename Model::CommandLineOptions modelOptions)
{
if (!ValidateDirectory(modelOptions.m_ModelDir))
{
@@ -63,7 +64,7 @@ int main(int argc, char* argv[])
modelParams.m_VisualizePostOptimizationModel = modelOptions.m_VisualizePostOptimizationModel;
modelParams.m_EnableFp16TurboMode = modelOptions.m_EnableFp16TurboMode;
- return std::make_unique<Model>(modelParams);
+ return std::make_unique<Model>(modelParams, commonOptions.m_EnableProfiling);
});
});
}