|
Tizen HAL API
1.0
|
The Machine Learning provides functions for ml.
#include <hal-ml.h>
Tizen ML API may require a hardware device to accelerate its job. This HAL ML provides an interface for Tizen ML API (NNStreamer's tensor_filter subplugin) to use such hardware acceleration devices (NPU, ...) if available.
Typedefs | |
| typedef struct _hal_backend_ml_funcs | hal_backend_ml_funcs |
| The HAL backend structure for ML. This should be implemented by each HAL backend. | |
| typedef enum hal_ml_error | hal_ml_error_e |
| Enumeration for the error codes of hal-ml. | |
| struct _hal_backend_ml_funcs |
The HAL backend structure for ML. This should be implemented by each HAL backend.
Data Fields | |
| int(* | init )(void **backend_private) |
| int(* | deinit )(void *backend_private) |
| int(* | configure_instance )(void *backend_private, const void *prop) |
| int(* | invoke )(void *backend_private, const void *input, void *output) |
| int(* | invoke_dynamic )(void *backend_private, void *prop, const void *input, void *output) |
| int(* | get_framework_info )(void *backend_private, void *framework_info) |
| int(* | get_model_info )(void *backend_private, int ops, void *in_info, void *out_info) |
| int(* _hal_backend_ml_funcs::configure_instance)(void *backend_private, const void *prop) |
Invoke
| int(* _hal_backend_ml_funcs::deinit)(void *backend_private) |
Configure ml framework
| int(* _hal_backend_ml_funcs::get_framework_info)(void *backend_private, void *framework_info) |
Get model info
| int(* _hal_backend_ml_funcs::get_model_info)(void *backend_private, int ops, void *in_info, void *out_info) |
Handle event
| int(* _hal_backend_ml_funcs::init)(void **backend_private) |
< Initialize HL backend handle Deinitialize HL backend handle
| int(* _hal_backend_ml_funcs::invoke)(void *backend_private, const void *input, void *output) |
Invoke dynamic
| int(* _hal_backend_ml_funcs::invoke_dynamic)(void *backend_private, void *prop, const void *input, void *output) |
Get framework info
| typedef struct _hal_backend_ml_funcs hal_backend_ml_funcs |
The HAL backend structure for ML. This should be implemented by each HAL backend.
| typedef enum hal_ml_error hal_ml_error_e |
Enumeration for the error codes of hal-ml.
| enum hal_ml_error |
Enumeration for the error codes of hal-ml.