From 22dfe838f73447e8fe45915517c71cf4bec33097 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=ED=95=9C=EC=A2=85/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 30 Apr 2019 12:41:45 +0900 Subject: [PATCH] Use nchw::View instead of Reader (#5084) `Reader` is only for tensors of no paddings, while `nchw::View` can cover padding cases. Signed-off-by: Hanjoung Lee --- runtimes/neurun/backend/cpu/kernel/PermuteLayer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtimes/neurun/backend/cpu/kernel/PermuteLayer.cc b/runtimes/neurun/backend/cpu/kernel/PermuteLayer.cc index 01035fe..52bf9fd 100644 --- a/runtimes/neurun/backend/cpu/kernel/PermuteLayer.cc +++ b/runtimes/neurun/backend/cpu/kernel/PermuteLayer.cc @@ -247,8 +247,8 @@ void PermuteLayer::run() { auto feature = _shape.asFeature(); - const util::feature::nhwc::Reader from{ - feature, reinterpret_cast(input_buffer), input_size}; + // TODO nchw::View class is layout independent, need to rename it + const util::feature::nchw::View from{&in}; util::feature::nchw::View into{&out}; ::nnfw::misc::feature::iterate(feature) -- 2.7.4