This patch newly adds 'NNS_custom_easy_unregister()' function to remove
registered function so that pipeline itself can be reused without
changing custom model name.
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
NNS_custom_invoke func, void *data,
const GstTensorsInfo * in_info, const GstTensorsInfo * out_info);
+/**
+ * @brief Unregister the custom-easy tensor function.
+ * @param[in] modelname The registered name of custom-easy tensor function.
+ * @return 0 if success, non-zero if error
+ */
+extern int NNS_custom_easy_unregister (const char * modelname);
+
G_END_DECLS
#endif /*__NNS_TENSOR_FILTER_CUSTOM_EASY_H__*/
}
/**
+ * @brief Unregister the custom-easy tensor function.
+ * @return 0 if success. -EINVAL if invalid model name.
+ */
+int
+NNS_custom_easy_unregister (const char *modelname)
+{
+ return unregister_subplugin (NNS_EASY_CUSTOM_FILTER, modelname) ? 0 : -EINVAL;
+}
+
+/**
* @brief Callback required by tensor_filter subplugin
*/
static int