[Topk_v2 Op] support other operation types (#1314)
author최성진/동작제어Lab(SR)/Principal Engineer/삼성전자 <lotieye.choi@samsung.com>
Wed, 30 May 2018 11:06:45 +0000 (20:06 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Wed, 30 May 2018 11:06:45 +0000 (20:06 +0900)
commit955ad563e281eab828fad4fd3ba269d0b9c174ae
tree757de8eb0e0d37c71cb64942b82b6d0972698285
parente1cd859786d571bf9041f901d48b2314b97e86a9
[Topk_v2 Op] support other operation types (#1314)

* [Topk_v2 Op] add uint8 types

This commit adds other types.
-uint8

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* [Topk_v2 Op] add int32 operation types

This commit adds other types.
-int32

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* [Topk_v2 Op] add an comment that explains topk_v2 operation

This commit adds comments.
- TopK_v2 of NN Runtime supports TENSOR_FLOAT32, TENSOR_QUANT8_ASYMM, TENSOR_INT32 other than TFLite.

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
* [Top[Topk_v2 Op] add 2D test cases for other types

This commit adds 2D test cases for other types (int32, uint8)

Signed-off-by: SungJin Choi <lotieye.choi@samsung.com>
16 files changed:
runtimes/nn/common/OperationsUtils.cpp
runtimes/nn/common/operations/Topk_v2.cpp
runtimes/nn/common/operations/internal/optimized/topk_v2.h
runtimes/tests/neural_networks_test/generated/all_generated_tests.cpp
runtimes/tests/neural_networks_test/generated/examples/topk_v2_1D_int32.example.cpp [new file with mode: 0644]
runtimes/tests/neural_networks_test/generated/examples/topk_v2_1D_uint8.example.cpp [new file with mode: 0644]
runtimes/tests/neural_networks_test/generated/examples/topk_v2_2D_int32.example.cpp [new file with mode: 0644]
runtimes/tests/neural_networks_test/generated/examples/topk_v2_2D_uint8.example.cpp [new file with mode: 0644]
runtimes/tests/neural_networks_test/generated/models/topk_v2_1D_int32.model.cpp [new file with mode: 0644]
runtimes/tests/neural_networks_test/generated/models/topk_v2_1D_uint8.model.cpp [new file with mode: 0644]
runtimes/tests/neural_networks_test/generated/models/topk_v2_2D_int32.model.cpp [new file with mode: 0644]
runtimes/tests/neural_networks_test/generated/models/topk_v2_2D_uint8.model.cpp [new file with mode: 0644]
runtimes/tests/neural_networks_test/specs/Ex/topk_v2_1D_int32.mod.py [new file with mode: 0644]
runtimes/tests/neural_networks_test/specs/Ex/topk_v2_1D_uint8.mod.py [new file with mode: 0644]
runtimes/tests/neural_networks_test/specs/Ex/topk_v2_2D_int32.mod.py [new file with mode: 0644]
runtimes/tests/neural_networks_test/specs/Ex/topk_v2_2D_uint8.mod.py [new file with mode: 0644]