Enable to pass ValidationTestModel.AddOperation in pureacl (#2451)
author남궁석/동작제어Lab(SR)/Engineer/삼성전자 <sk.namkoong@samsung.com>
Fri, 24 Aug 2018 02:28:46 +0000 (11:28 +0900)
committer오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Fri, 24 Aug 2018 02:28:46 +0000 (11:28 +0900)
commitdea192869775d188641b4972576d6511fe302fe6
treef15f6ede5030c7b19fdf5bbf5691648f3d8ae47f
parent9a12451f1cb7246595c53ff6d9495abf90d59005
Enable to pass ValidationTestModel.AddOperation in pureacl (#2451)

In `ValidationTestModel.AddOperation`, if inputs or outputs are `nullptr`, it is always error even if `inputCount` and `outputCount` is zero.
This commit will modify those conditions, and add some checkings to pass the test.

 - Modify `nullptr` check condition
 - Add checking if building model is finished or not
 - Add checking if type is invalid or not

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
runtimes/pure_arm_compute/src/model.cc