[backend/srcn] Add transpose conv kernel (#7248)
author윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자 <jy910.yun@samsung.com>
Mon, 9 Sep 2019 09:53:30 +0000 (18:53 +0900)
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Mon, 9 Sep 2019 09:53:30 +0000 (18:53 +0900)
commitdd008a94bcf558448e2d49bd9076c236a6a73823
treec70edb4aee2da5650894b99562c4c151f54f870b
parent50aaba78e451f585f331cb97b802dc4ec1d58093
[backend/srcn] Add transpose conv kernel (#7248)

* [backend/srcn] Add transpose conv kernel

Srcn library supports raw-major(NCHW) and col-major(NHWC) image layout.
However this commit only supports col-major image layout.

And Srcn library takes HWOI kernel filter layout when the image layout is NHWC.
But in neurun, it takes OHWI kernel filter layout when using the same image layout.
So it need to permute codes for TransposeConv weight.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Change the Permute function to be limited to kernel layout

* Use original data array without copying to new address
runtimes/neurun/backend/srcn/ConstantInitializer.cc
runtimes/neurun/backend/srcn/ConstantInitializer.h
runtimes/neurun/backend/srcn/KernelGenerator.cc
runtimes/neurun/backend/srcn/KernelGenerator.h
runtimes/neurun/backend/srcn/kernel/OperationUtils.cc [new file with mode: 0644]
runtimes/neurun/backend/srcn/kernel/OperationUtils.h [new file with mode: 0644]
runtimes/neurun/backend/srcn/kernel/TransposeConvLayer.cc [new file with mode: 0644]
runtimes/neurun/backend/srcn/kernel/TransposeConvLayer.h [new file with mode: 0644]