24 int num_inputs = inputShapes.size();
29 ASSERT(axis < (int32_t)num_dimensions);
32 for (
int i = 1; i < num_inputs; ++i)
35 ASSERT(inputShapes[i].type == inputShapes[0].type);
36 if (input_type == OperandType::TENSOR_QUANT8_ASYMM)
39 ASSERT(inputShapes[0].scale == inputShapes[i].scale);
41 for (
int d = 0; d < (int32_t)num_dimensions; ++d)
55 output->type = input_type;
56 output->dimensions = inputShapes[0].dimensions;
57 output->dimensions[axis] = sum_axis;
59 if (input_type == OperandType::TENSOR_QUANT8_ASYMM)
62 ASSERT(inputShapes[0].scale == output->scale);