From e69446d4b8f8d0b3168760b3386d8715d3b381f5 Mon Sep 17 00:00:00 2001 From: hyeonseok lee Date: Tue, 1 Jun 2021 13:52:09 +0900 Subject: [PATCH] [Fix] Initialize member variable - Initialize member variable sorted - Catch exception when create the tensor resolves: 1231330, 1143556 Signed-off-by: hyeonseok lee --- Applications/ProductRatings/jni/main.cpp | 6 +++--- nntrainer/graph/graph_core.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Applications/ProductRatings/jni/main.cpp b/Applications/ProductRatings/jni/main.cpp index 971b7f2..b7b6787 100644 --- a/Applications/ProductRatings/jni/main.cpp +++ b/Applications/ProductRatings/jni/main.cpp @@ -226,10 +226,10 @@ int main(int argc, char *argv[]) { return 1; } - /****** testing with a golden data if any ********/ - nntrainer::Tensor golden(1, 1, 15, 8); - try { + /****** testing with a golden data if any ********/ + nntrainer::Tensor golden(1, 1, 15, 8); + loadFile("embedding_weight_golden.out", golden); golden.print(std::cout); diff --git a/nntrainer/graph/graph_core.h b/nntrainer/graph/graph_core.h index 4fd6b39..c7d6397 100644 --- a/nntrainer/graph/graph_core.h +++ b/nntrainer/graph/graph_core.h @@ -38,7 +38,7 @@ public: /** * @brief Constructor of Graph Core Class */ - GraphCore() : def_name_count(0) {} + GraphCore() : sorted(false), def_name_count(0) {} /** * @brief Add the given node into Graph -- 2.7.4