Fix issue "no return statement in function return non-void"
This commit fix issue for two classes nncc:core:ADT:tensor:Index::resize() and
nncc::core::ADT::tensor::Shape::resize()
Signed-off-by: Sergey Vostokov <s.vostokov@samsung.com>
}
uint32_t Index::rank(void) const { return _indices.size(); }
-Index &Index::resize(uint32_t size) { _indices.resize(size); }
+Index &Index::resize(uint32_t size)
+{
+ _indices.resize(size);
+ return *this;
+}
Index &Index::fill(uint32_t index)
{
}
uint32_t Shape::rank(void) const { return _dims.size(); }
-Shape &Shape::resize(uint32_t size) { _dims.resize(size); }
+Shape &Shape::resize(uint32_t size)
+{
+ _dims.resize(size);
+ return *this;
+}
uint32_t &Shape::dim(uint32_t axis) { return _dims.at(axis); }
uint32_t Shape::dim(uint32_t axis) const { return _dims.at(axis); }