namespace
{
-bool aligned(const coco::KernelObject *o, const nncc::core::ADT::kernel::Layout &l)
-{
- const auto &shape = o->shape();
-
- for (uint32_t nth = 0; nth < shape.count(); ++nth)
- {
- for (uint32_t row = 0; row < shape.height(); ++row)
- {
- for (uint32_t col = 0; col < shape.width(); ++col)
- {
- for (uint32_t ch = 0; ch < shape.depth(); ++ch)
- {
- if (o->at(nth, ch, row, col).value() != l.offset(shape, nth, ch, row, col))
- {
- return false;
- }
- }
- }
- }
- }
-
- return true;
-}
coco::Copy *make_copy(coco::FeatureObject *from, coco::FeatureObject *into)
{