This commit resolve all the compiler warnings in enco codebase.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
// has_inout_bag(m) returns true if there is a pair of coco::Input and coco::Output that share
// the same bag as their backing storage
-bool has_inout_bag(const coco::Module *m)
+inline bool has_inout_bag(const coco::Module *m)
{
for (uint32_t n = 0; n < m->entity()->bag()->size(); ++n)
{
{
auto obj = _ker;
auto shape = obj->shape();
- auto len = nncc::core::ADT::kernel::num_elements(shape);
auto ovl = data->f32()->read(obj);
assert(ovl != nullptr);
}
}
- assert(values.size() == len);
+ assert(values.size() == nncc::core::ADT::kernel::num_elements(shape));
binder->setOperand(ker, values.begin(), values.end());
}