This commit eliminates the use of deprecated Kernel layout manipulatoin
methods from NNAPI backend implementation.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
// Reorder Kernel as NHWC
auto ker_obj = unit->op()->asConv2D()->ker();
auto ker_bag = ker_obj->bag();
+ auto ker_layout = make_unique<coco::GenericKernelLayout>(ker_obj->shape());
assert(ker_bag != nullptr);
assert(coco::dependent_objects(ker_bag).size() == 1);
assert((ker_bag->isInput() == false) && (ker_bag->isOutput() == false));
- ker_obj->reorder<nncc::core::ADT::kernel::NHWCLayout>();
+ ker_layout->reorder<nncc::core::ADT::kernel::NHWCLayout>();
+ ker_obj->layout(std::move(ker_layout));
}
}