[filter/ext] Replace asserts with error handling
authorParichay Kapoor <pk.kapoor@samsung.com>
Mon, 23 Dec 2019 08:24:55 +0000 (17:24 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 3 Jan 2020 07:19:47 +0000 (14:19 +0700)
commit4a25e001796751c4962d891b79680750e54e8c78
tree82be58ecc9e765eba9a18e126928465622ae1553
parent011547182866d5b046b9090f49effb378e7ba18e
[filter/ext] Replace asserts with error handling

Replace asserts with appropriate error handling in tensor filter extensions
This will allows test cases for failure scenarios and handle erronous inputs
via single-shot API gracefully with error return than shutting down with assert failure

V2:
Applied for custom filters as well

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
ext/nnstreamer/tensor_filter/tensor_filter_caffe2.cc
ext/nnstreamer/tensor_filter/tensor_filter_nnfw.c
ext/nnstreamer/tensor_filter/tensor_filter_pytorch.cc
ext/nnstreamer/tensor_filter/tensor_filter_tensorflow.cc
ext/nnstreamer/tensor_filter/tensor_filter_tensorflow_lite.cc
gst/nnstreamer/tensor_filter/tensor_filter_custom.c