diff options
author | Guo, Yejun <yejun.guo@intel.com> | 2020-08-07 14:32:55 +0800 |
---|---|---|
committer | Guo, Yejun <yejun.guo@intel.com> | 2020-08-12 15:43:40 +0800 |
commit | 0a51abe8ab71c03eff66200265142fc910bcbfe2 (patch) | |
tree | 2f3e24f02a5f54f6ebd95950774f5adf7587229f /libavfilter/dnn/dnn_backend_tf.c | |
parent | 4ed6bca4ae578e050d60aa96dbbdefd60f6d67c4 (diff) |
dnn: add backend options when load the model
different backend might need different options for a better performance,
so, add the parameter into dnn interface, as a preparation.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Diffstat (limited to 'libavfilter/dnn/dnn_backend_tf.c')
-rw-r--r-- | libavfilter/dnn/dnn_backend_tf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c index 9ceca5cea0..86da99160d 100644 --- a/libavfilter/dnn/dnn_backend_tf.c +++ b/libavfilter/dnn/dnn_backend_tf.c @@ -572,7 +572,7 @@ static DNNReturnType load_native_model(TFModel *tf_model, const char *model_file return DNN_SUCCESS; } -DNNModel *ff_dnn_load_model_tf(const char *model_filename) +DNNModel *ff_dnn_load_model_tf(const char *model_filename, const char *options) { DNNModel *model = NULL; TFModel *tf_model = NULL; @@ -600,6 +600,7 @@ DNNModel *ff_dnn_load_model_tf(const char *model_filename) model->model = (void *)tf_model; model->set_input_output = &set_input_output_tf; model->get_input = &get_input_tf; + model->options = options; return model; } |