Update tensor information according to its order 50/272750/1
authorTae-Young Chung <ty83.chung@samsung.com>
Wed, 23 Mar 2022 14:01:52 +0000 (23:01 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Wed, 23 Mar 2022 14:02:08 +0000 (23:02 +0900)
[Version] 0.0.4-0
[Issue type] update

mDesignated_ouputs should be updated according to
layers' true order, not iterated order.

Change-Id: I5e2deafd01d044dc11721a345e4cdec2aa7539bf
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
packaging/inference-engine-mlapi.spec
src/inference_engine_mlapi.cpp

index 346bd26..6628d6d 100644 (file)
@@ -1,6 +1,6 @@
 Name:       inference-engine-mlapi
 Summary:    ML Single API backend of NNStreamer for MediaVision
-Version:    0.0.3
+Version:    0.0.4
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index e0079a9..56bafe9 100644 (file)
@@ -979,8 +979,13 @@ namespace MLAPIImpl
                if (!mOutputProperty.layers.empty()) {
                        int index = 0;
                        for (auto& iter : mOutputProperty.layers) {
+#ifdef _DA_RVC_65
+                               LOGI("index:%d with name %s", iter.second.order, iter.first.c_str());
+                               mDesignated_outputs.insert(std::make_pair(iter.first, iter.second.order));
+#else
                                LOGI("index:%d with name %s", index, iter.first.c_str());
                                mDesignated_outputs.insert(std::make_pair(iter.first, index));
+#endif
                                index++;
                        }