Skip to content

Commit

Permalink
[onert] Use maybe_unused attribute for local variable in bias_op kern…
Browse files Browse the repository at this point in the history
…el (#13582)

To remove an unused variable warning in release build, this commit uses
maybe_unused attribute for local variable.

ONE-DCO-1.0-Signed-off-by: Jiyoung Yun <[email protected]>
  • Loading branch information
jyoungyun authored Aug 2, 2024
1 parent 1853bcb commit b66ccf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compute/cker/include/cker/eigen/bias_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ template <typename T>
void biasHelper(const Shape &bias_shape, const T *bias_data, const Shape &input_shape,
T *input_data, T activation_min, T activation_max)
{
int channel_dim = input_shape.DimensionsCount() - 1;
[[maybe_unused]] int channel_dim = input_shape.DimensionsCount() - 1;

assert(input_shape.Dims(channel_dim) == bias_shape.Dims(0));
assert(input_data);
Expand Down

0 comments on commit b66ccf0

Please sign in to comment.