diff options
author | 오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com> | 2019-03-18 12:46:44 +0900 |
---|---|---|
committer | GitHub Enterprise <noreply-CODE@samsung.com> | 2019-03-18 12:46:44 +0900 |
commit | c2a1eab661d46958c5eae6956ba72753d3240109 (patch) | |
tree | b1d715f8f0b168a042ad58a9a26f0e40b67f226e | |
parent | 452fc784d1cb0c75240e9d986c985b6ddaa7ea18 (diff) | |
download | nnfw-c2a1eab661d46958c5eae6956ba72753d3240109.tar.gz nnfw-c2a1eab661d46958c5eae6956ba72753d3240109.tar.bz2 nnfw-c2a1eab661d46958c5eae6956ba72753d3240109.zip |
Fix logging runtime format (#4767)
Fix logging runtime format and check all runtimes
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
-rw-r--r-- | runtimes/.FORMATCHECKED (renamed from runtimes/neurun/.FORMATCHECKED) | 0 | ||||
-rw-r--r-- | runtimes/logging/src/nnapi_logging.cc | 27 | ||||
-rw-r--r-- | runtimes/pure_arm_compute/.FORMATCHECKED | 0 |
3 files changed, 8 insertions, 19 deletions
diff --git a/runtimes/neurun/.FORMATCHECKED b/runtimes/.FORMATCHECKED index e69de29bb..e69de29bb 100644 --- a/runtimes/neurun/.FORMATCHECKED +++ b/runtimes/.FORMATCHECKED diff --git a/runtimes/logging/src/nnapi_logging.cc b/runtimes/logging/src/nnapi_logging.cc index 7b96551d0..b2422e076 100644 --- a/runtimes/logging/src/nnapi_logging.cc +++ b/runtimes/logging/src/nnapi_logging.cc @@ -118,15 +118,9 @@ struct ANeuralNetworksEvent { }; -int ANeuralNetworksEvent_wait(ANeuralNetworksEvent *event) -{ - return ANEURALNETWORKS_NO_ERROR; -} +int ANeuralNetworksEvent_wait(ANeuralNetworksEvent *event) { return ANEURALNETWORKS_NO_ERROR; } -void ANeuralNetworksEvent_free(ANeuralNetworksEvent *event) -{ - delete event; -} +void ANeuralNetworksEvent_free(ANeuralNetworksEvent *event) { delete event; } // // Memory @@ -216,8 +210,7 @@ int ANeuralNetworksModel_setOperandValue(ANeuralNetworksModel *model, int32_t in return ANEURALNETWORKS_NO_ERROR; } -int ANeuralNetworksModel_setOperandValueFromMemory(ANeuralNetworksModel *model, - int32_t index, +int ANeuralNetworksModel_setOperandValueFromMemory(ANeuralNetworksModel *model, int32_t index, const ANeuralNetworksMemory *memory, size_t offset, size_t length) { @@ -257,8 +250,7 @@ int ANeuralNetworksModel_addOperationEx(ANeuralNetworksModel *model, const uint32_t *inputs, uint32_t outputCount, const uint32_t *outputs) { - std::cout << __FUNCTION__ << "(model: " << model - << ", type: " << type + std::cout << __FUNCTION__ << "(model: " << model << ", type: " << type << ", inputCount: " << inputCount << ", outputCount: " << outputCount << ")" << std::endl; @@ -274,11 +266,8 @@ int ANeuralNetworksModel_addOperationEx(ANeuralNetworksModel *model, return ANEURALNETWORKS_NO_ERROR; } - -int ANeuralNetworksModel_identifyInputsAndOutputs(ANeuralNetworksModel *model, - uint32_t inputCount, - const uint32_t *inputs, - uint32_t outputCount, +int ANeuralNetworksModel_identifyInputsAndOutputs(ANeuralNetworksModel *model, uint32_t inputCount, + const uint32_t *inputs, uint32_t outputCount, const uint32_t *outputs) { std::cout << __FUNCTION__ << "(model: " << model << ")" << std::endl; @@ -355,8 +344,8 @@ int ANeuralNetworksExecution_create(ANeuralNetworksCompilation *compilation, // ANeuralNetworksExecution_setInput and ANeuralNetworksExecution_setOutput specify HOST buffer for // input/output int ANeuralNetworksExecution_setInput(ANeuralNetworksExecution *execution, int32_t index, - const ANeuralNetworksOperandType *type, - const void *buffer, size_t length) + const ANeuralNetworksOperandType *type, const void *buffer, + size_t length) { std::cout << __FUNCTION__ << "(execution: " << execution << ", type: "; diff --git a/runtimes/pure_arm_compute/.FORMATCHECKED b/runtimes/pure_arm_compute/.FORMATCHECKED deleted file mode 100644 index e69de29bb..000000000 --- a/runtimes/pure_arm_compute/.FORMATCHECKED +++ /dev/null |