-
Notifications
You must be signed in to change notification settings - Fork 159
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
Conversation
/** | ||
* @brief To get operand-level info, e.g., ir::Operand::isConstant() | ||
*/ | ||
const ir::Operands &_operands; |
There was a problem hiding this comment.
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
.
5cbda8e
to
7aa5443
Compare
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]>
7aa5443
to
fba7989
Compare
if (weights_format != ir::FullyConnectedWeightsFormat::Default) | ||
throw std::runtime_error("Unsupported FullyConnected Weights Format"); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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]