[Application] provide default tensortype
authorDonghyeon Jeong <dhyeon.jeong@samsung.com>
Wed, 19 Jul 2023 04:45:12 +0000 (13:45 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Mon, 21 Aug 2023 06:29:23 +0000 (15:29 +0900)
- add tensortype to avoid error in initialization

Signed-off-by: Donghyeon Jeong <dhyeon.jeong@samsung.com>
Applications/ProductRatings/jni/main.cpp

index 6f5ad36..7a5d888 100644 (file)
@@ -247,7 +247,7 @@ int main(int argc, char *argv[]) {
 
       try {
         float answer =
-          NN.inference({MAKE_SHARED_TENSOR(nntrainer::Tensor({o}))})[0]
+          NN.inference({MAKE_SHARED_TENSOR(nntrainer::Tensor({o}, nntrainer::TensorDim::TensorType()))})[0]
             ->apply(stepFunction)
             .getValue(0, 0, 0, 0);