diff options
author | Guo, Yejun <yejun.guo@intel.com> | 2019-04-25 10:14:25 +0800 |
---|---|---|
committer | Pedro Arthur <bygrandao@gmail.com> | 2019-05-08 12:33:00 -0300 |
commit | 7adfb6132e0823de06f92ecbcb485eeb4260d407 (patch) | |
tree | 71211cd8de794fc8cfa89e46728376f29f347e01 /libavfilter/vf_sr.c | |
parent | e2b92896c4ca609c851ea8c1a1bfd5d0918a5269 (diff) |
libavfilter/dnn: avoid memcpy for tensorflow dnn output
use TF_Tensor's cpu address to avoid extra memcpy.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
Diffstat (limited to 'libavfilter/vf_sr.c')
-rw-r--r-- | libavfilter/vf_sr.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavfilter/vf_sr.c b/libavfilter/vf_sr.c index 577b4fcb75..12804d8bdf 100644 --- a/libavfilter/vf_sr.c +++ b/libavfilter/vf_sr.c @@ -274,9 +274,6 @@ static av_cold void uninit(AVFilterContext *context) int i; SRContext *sr_context = context->priv; - if (sr_context->backend_type == DNN_TF) - av_freep(&sr_context->output.data); - if (sr_context->dnn_module){ (sr_context->dnn_module->free_model)(&sr_context->model); av_freep(&sr_context->dnn_module); |