aboutsummaryrefslogtreecommitdiff
path: root/applications/inference_process/include/inference_process.hpp
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2022-01-27 17:36:55 +0100
committerKristofer Jonsson <kristofer.jonsson@arm.com>2022-01-31 13:27:17 +0100
commit5a15bf4c86fad79523517afff5f2df2f6298d8da (patch)
treeb8e750d2471d480dd4c271bf2a376816ad1ac412 /applications/inference_process/include/inference_process.hpp
parentdcc1ce0f9b64198f3bb82d9858ec79663808a35f (diff)
downloadethos-u-core-software-5a15bf4c86fad79523517afff5f2df2f6298d8da.tar.gz
Set TFLu external context
Remove PMU configuration from the InferenceJob struct and add an external context parameter intead. The external context is passed to the TFLu interpreter and will be returned in the ethosu_inference_begin() and ethosu_inference_end() callbacks. Change-Id: I6dab04c0ab5088b1325be365d77d65d1182e7441
Diffstat (limited to 'applications/inference_process/include/inference_process.hpp')
-rw-r--r--applications/inference_process/include/inference_process.hpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/applications/inference_process/include/inference_process.hpp b/applications/inference_process/include/inference_process.hpp
index 6ab453c..9635884 100644
--- a/applications/inference_process/include/inference_process.hpp
+++ b/applications/inference_process/include/inference_process.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019-2021 Arm Limited. All rights reserved.
+ * Copyright (c) 2019-2022 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -53,10 +53,7 @@ struct InferenceJob {
std::vector<DataPtr> output;
std::vector<DataPtr> expectedOutput;
size_t numBytesToPrint;
- std::vector<uint8_t> pmuEventConfig;
- bool pmuCycleCounterEnable;
- std::vector<uint32_t> pmuEventCount;
- uint64_t pmuCycleCounterCount;
+ void *externalContext;
InferenceJob();
InferenceJob(const std::string &name,
@@ -64,9 +61,8 @@ struct InferenceJob {
const std::vector<DataPtr> &input,
const std::vector<DataPtr> &output,
const std::vector<DataPtr> &expectedOutput,
- size_t numBytesToPrint,
- const std::vector<uint8_t> &pmuEventConfig,
- const bool pmuCycleCounterEnable);
+ const size_t numBytesToPrint = 0,
+ void *externalContext = nullptr);
void invalidate();
void clean();