dnn: introduce dnn operand (in c code) to hold operand infos within network

Multimedia / FFmpeg - Guo, Yejun [intel.com] - 30 August 2019 14:41 EDT

the info can be saved in dnn operand object without regenerating again and again, and it is also needed for layer split/merge, and for memory reuse.

to make things step by step, this patch just focuses on c code, the change within python script will be added later.

09a455a246 dnn: introduce dnn operand (in c code) to hold operand infos within network
libavfilter/dnn/dnn_backend_native.c | 226 ++++++++++++-------------
libavfilter/dnn/dnn_backend_native.h | 54 +++++-
libavfilter/dnn/dnn_backend_native_layer_pad.c | 24 ++-
libavfilter/dnn/dnn_backend_native_layer_pad.h | 4 +-
tests/dnn/Makefile | 2 +-
tests/dnn/dnn-layer-pad-test.c | 60 +++++--
6 files changed, 236 insertions(+), 134 deletions(-)

  • Share