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

Remove unused variables in glow/glow/lib/Backends/Interpreter/InterpreterNodes.cpp #6162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions lib/Backends/Interpreter/InterpreterNodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2823,7 +2823,7 @@ void BoundInterpreterFunction::fwdGatherRangesInstImpl(

// Keep track of the total number of elements gathered across all
// examples for a sanity check later.
dim_t grandTotalLen = 0;
[[maybe_unused]] dim_t grandTotalLen = 0;

// For each example in ranges:
for (dim_t example = 0; example < numExamples; ++example) {
Expand Down Expand Up @@ -5284,7 +5284,7 @@ void BoundInterpreterFunction::fwdSparseLengthsSumInstI8Impl(
auto LH = lengths->getHandle<int32_t>();

size_t segments = lengths->dims()[0];
size_t totalLength = 0;
[[maybe_unused]] size_t totalLength = 0;
for (size_t i = 0; i < segments; i++) {
totalLength += LH.raw(i);
}
Expand Down Expand Up @@ -5334,7 +5334,7 @@ void BoundInterpreterFunction::fwdSparseLengthsSumInstFloatImpl(
auto LH = lengths->getHandle<int32_t>();

size_t segments = lengths->dims()[0];
size_t totalLength = 0;
[[maybe_unused]] size_t totalLength = 0;
for (size_t i = 0; i < segments; i++) {
totalLength += LH.raw(i);
}
Expand Down Expand Up @@ -5386,7 +5386,7 @@ void BoundInterpreterFunction::fwdSparseLengthsWeightedSumInstFloatImpl(
auto LH = lengths->getHandle<int32_t>();

size_t segments = lengths->dims()[0];
size_t totalLength = 0;
[[maybe_unused]] size_t totalLength = 0;
for (dim_t i = 0; i < segments; i++) {
totalLength += LH.raw(i);
}
Expand Down Expand Up @@ -5427,7 +5427,7 @@ void BoundInterpreterFunction::fwdSparseLengthsWeightedSumInstI8Impl(
auto LH = lengths->getHandle<int32_t>();

dim_t segments = lengths->dims()[0];
dim_t totalLength = 0;
[[maybe_unused]] dim_t totalLength = 0;
for (dim_t i = 0; i < segments; i++) {
totalLength += LH.raw(i);
}
Expand Down Expand Up @@ -5503,7 +5503,7 @@ void BoundInterpreterFunction::fwdSparseLengthsWeightedSumGradInst(
auto IH = indices->getHandle<int64_t>();

size_t segments = lengths->dims()[0];
size_t totalLength = 0;
[[maybe_unused]] size_t totalLength = 0;
for (size_t i = 0; i < segments; ++i) {
totalLength += LH.raw(i);
}
Expand Down Expand Up @@ -5682,7 +5682,7 @@ void BoundInterpreterFunction::fwdRowwiseQuantizedSparseLengthsWeightedSumImpl(
auto LH = lengths->getHandle<int32_t>();

dim_t segments = lengths->dims()[0];
dim_t totalLength = 0;
[[maybe_unused]] dim_t totalLength = 0;
for (dim_t i = 0; i < segments; i++) {
totalLength += LH.raw(i);
}
Expand Down Expand Up @@ -5777,7 +5777,7 @@ void BoundInterpreterFunction::
auto LH = lengths->getHandle<int32_t>();

size_t segments = lengths->dims()[0];
size_t totalLength = 0;
[[maybe_unused]] size_t totalLength = 0;
for (size_t i = 0; i < segments; i++) {
totalLength += LH.raw(i);
}
Expand Down
Loading