[nnc] Issue: SVACE STATIC_OVERFLOW in soft_backend/code_snippets/cpp_operations.def
Signed-off-by: Timur Ablyazimov <t.ablyazimov@samsung.com>
void Serializer::visit(mir::ops::ElementwiseOp& op) {
_curOp->_paramStartOffset = _buffer.size();
// Op type is known at codegen Time
- serializeT<int>((int32_t)op.getNumInputs());
serializeT<int>((int32_t)op.getBroadcast());
serializeShape(op.getOutputShape(0));
}
const float *input[] = {inputs.getData()...};
RuntimeShape in_shapes[] = {shapeToRuntimeShape(inputs.getShape())...};
- const int32_t num_inputs = deserializeT<int32_t>(params);
+ const int32_t num_inputs = sizeof(input) / sizeof(const float*);
const bool needs_broadcast = (bool)deserializeT<int32_t>(params);
const Shape out_shape = deserializeShape(params);