From: 최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 Date: Fri, 15 Jun 2018 01:24:16 +0000 (+0900) Subject: Modify initialization for gather operation (#1666) X-Git-Tag: 0.2~599 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=608a090f2b9fda1aa9228d25c7368d16581939cb;p=platform%2Fcore%2Fml%2Fnnfw.git Modify initialization for gather operation (#1666) This commit modifies initialization for gather operation. - initialize from 0, not 1. - because gather indices' values should be within input data coverage. - for example, suppose input data[300], 0=< indices data's value <299. Signed-off-by: SungJin Choi --- diff --git a/libs/support/tflite/src/Diff.cpp b/libs/support/tflite/src/Diff.cpp index 594f18e..14fac61 100644 --- a/libs/support/tflite/src/Diff.cpp +++ b/libs/support/tflite/src/Diff.cpp @@ -269,10 +269,9 @@ int RandomTestRunner::run(const nnfw::support::tflite::interp::Builder &builder) nnfw::util::tensor::iterate(pure_view.shape()) << [&](const nnfw::util::tensor::Index &ind) { // TODO Generate random values - ++value; - pure_view.at(ind) = value; nnapi_view.at(ind) = value; + ++value; }; };