Skip to content

Commit

Permalink
[compute/cker] Mark UNUSED_RELEASE (Samsung#13414)
Browse files Browse the repository at this point in the history
This commit marks the UNUSED_RELEASE macro as unused on release build because it is only used on assert.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Jul 15, 2024
1 parent 686f989 commit ecdac7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compute/cker/include/cker/operation/Concatenation.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ inline void Concatenation(const ConcatenationParams &params, 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)
{
Expand Down Expand Up @@ -110,6 +111,7 @@ inline void ConcatenationWithScaling(const ConcatenationParams &params,
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)
{
Expand Down
1 change: 1 addition & 0 deletions compute/cker/include/cker/operation/StridedSlice.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <typename T>
Expand Down

0 comments on commit ecdac7e

Please sign in to comment.