Revert remaining commented LOG codes to original (#506)
author김수진/동작제어Lab(SR)/Engineer/삼성전자 <sjsujin.kim@samsung.com>
Mon, 9 Apr 2018 13:20:46 +0000 (22:20 +0900)
committer최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 <hk0110.choi@samsung.com>
Mon, 9 Apr 2018 13:20:46 +0000 (22:20 +0900)
This commit reverts remaining commented LOG codes to original.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
src/runtime/ref/nn/runtime/CompilationBuilder.cpp
src/runtime/ref/nn/runtime/NeuralNetworks.cpp

index b28b4c8..de551ab 100644 (file)
@@ -37,8 +37,7 @@ CompilationBuilder::CompilationBuilder(const ModelBuilder* model) :
 
 int CompilationBuilder::finish() {
     if (mFinished) {
-        // TODO-NNRT Uncomment when LOG is available
-        // LOG(ERROR) << "ANeuralNetworksCompilation_finish called more than once";
+        LOG(ERROR) << "ANeuralNetworksCompilation_finish called more than once";
         return ANEURALNETWORKS_BAD_STATE;
     }
     // TODO validate the rest
index 858aa85..b9a2876 100644 (file)
@@ -25,7 +25,6 @@
 #include "ModelBuilder.h"
 #include "Memory.h"
 
-#include <iostream>
 #include <memory>
 
 // TODO-NNRT Include these files once availible
@@ -250,7 +249,7 @@ void ANeuralNetworksMemory_free(ANeuralNetworksMemory* memory) {
 
 int ANeuralNetworksModel_create(ANeuralNetworksModel** model) {
     if (!model) {
-        std::cout << "ANeuralNetworksModel_create passed a nullptr" << std::endl;
+        LOG(ERROR) << "ANeuralNetworksModel_create passed a nullptr";
         return ANEURALNETWORKS_UNEXPECTED_NULL;
     }
     ModelBuilder* m = new ModelBuilder();