Merge pull request #20702 from zihaomu:tf_expand_dim_layer
authorZihao Mu <zihaomu@outlook.com>
Mon, 4 Oct 2021 16:37:38 +0000 (00:37 +0800)
committerGitHub <noreply@github.com>
Mon, 4 Oct 2021 16:37:38 +0000 (16:37 +0000)
commit9085b933d81ffd12fbdabffe1ffc69a33580e631
tree34659fe119e4412a0664c436a948f7af64a7c13d
parent59502594f81154c9f1faaece155181cce2818453
Merge pull request #20702 from zihaomu:tf_expand_dim_layer

Add ExpandDims layer of tf_importer.cpp

* Add ExpandDims to tf_importer.

* add -1 expand test case.

* Support different dimensions of input.

* Compatible with 5-dimensional NDHWC data

* Code align

* support 3-dim input.

* 3-dim bug fixed.

* fixing error of code format.
modules/dnn/src/tensorflow/tf_importer.cpp
modules/dnn/test/test_tf_importer.cpp