diff --git a/compute/cker/include/cker/operation/Concatenation.h b/compute/cker/include/cker/operation/Concatenation.h index 9aaca00b7be..b73fa5c14b7 100644 --- a/compute/cker/include/cker/operation/Concatenation.h +++ b/compute/cker/include/cker/operation/Concatenation.h @@ -54,6 +54,7 @@ inline void Concatenation(const ConcatenationParams ¶ms, const Shape *const concat_size += input_shapes[i]->Dims(axis); } assert(concat_size == output_shape.Dims(axis)); + UNUSED_RELEASE(concat_size); int64_t outer_size = 1; for (int i = 0; i < axis; ++i) { @@ -110,6 +111,7 @@ inline void ConcatenationWithScaling(const ConcatenationParams ¶ms, concat_size += input_shapes[i]->Dims(axis); } assert(concat_size == output_shape.Dims(axis)); + UNUSED_RELEASE(concat_size); int64_t outer_size = 1; for (int i = 0; i < axis; ++i) { diff --git a/compute/cker/include/cker/operation/StridedSlice.h b/compute/cker/include/cker/operation/StridedSlice.h index 2f1089575ab..ecb587d7e5d 100644 --- a/compute/cker/include/cker/operation/StridedSlice.h +++ b/compute/cker/include/cker/operation/StridedSlice.h @@ -254,6 +254,7 @@ void checkOutputSize(const StridedSliceParams &op_params, const Shape &input_sha } assert(output_shape.DimensionsCount() == shape_size); + UNUSED_RELEASE(shape_size); } template