Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[onert] Remove UNUSED_RELEASE macro #14336

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

hseok-oh
Copy link
Contributor

This commit removes UNUSED_RELEASE() macro in onert.
UNUSED_RELEASE() macro is introduced to avoid unused variable warning when the variable is only used in debug build.
However, it is not necessary because we can use c++17 [[maybe_unused]] instead.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh [email protected]

@hseok-oh hseok-oh added the PR/ready for review It is ready to review. Please review it. label Nov 21, 2024
@hseok-oh hseok-oh requested a review from a team November 21, 2024 05:42
/**
* @brief To get operand-level info, e.g., ir::Operand::isConstant()
*/
const ir::Operands &_operands;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_operands is not used in DynamicShapeInferer.

@hseok-oh hseok-oh force-pushed the onert_unused_release branch from 5cbda8e to 7aa5443 Compare November 21, 2024 05:44
This commit removes UNUSED_RELEASE() macro in onert.
UNUSED_RELEASE() macro is introduced to avoid unused variable warning when the variable is only used in debug build.
However, it is not necessary because we can use c++17 [[maybe_unused]] instead.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
@hseok-oh hseok-oh force-pushed the onert_unused_release branch from 7aa5443 to fba7989 Compare November 21, 2024 05:46
Comment on lines +140 to +141
if (weights_format != ir::FullyConnectedWeightsFormat::Default)
throw std::runtime_error("Unsupported FullyConnected Weights Format");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weights_format param is not used on ruy backend. ruy backend supports default format only.

Copy link
Contributor

@batcheu batcheu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hseok-oh hseok-oh merged commit 996c3a9 into Samsung:master Nov 22, 2024
9 checks passed
@hseok-oh hseok-oh deleted the onert_unused_release branch November 22, 2024 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR/ready for review It is ready to review. Please review it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants