@@ -2823,7 +2823,7 @@ void BoundInterpreterFunction::fwdGatherRangesInstImpl(
2823
2823
2824
2824
// Keep track of the total number of elements gathered across all
2825
2825
// examples for a sanity check later.
2826
- dim_t grandTotalLen = 0 ;
2826
+ [[maybe_unused]] dim_t grandTotalLen = 0 ;
2827
2827
2828
2828
// For each example in ranges:
2829
2829
for (dim_t example = 0 ; example < numExamples; ++example) {
@@ -5284,7 +5284,7 @@ void BoundInterpreterFunction::fwdSparseLengthsSumInstI8Impl(
5284
5284
auto LH = lengths->getHandle <int32_t >();
5285
5285
5286
5286
size_t segments = lengths->dims ()[0 ];
5287
- size_t totalLength = 0 ;
5287
+ [[maybe_unused]] size_t totalLength = 0 ;
5288
5288
for (size_t i = 0 ; i < segments; i++) {
5289
5289
totalLength += LH.raw (i);
5290
5290
}
@@ -5334,7 +5334,7 @@ void BoundInterpreterFunction::fwdSparseLengthsSumInstFloatImpl(
5334
5334
auto LH = lengths->getHandle <int32_t >();
5335
5335
5336
5336
size_t segments = lengths->dims ()[0 ];
5337
- size_t totalLength = 0 ;
5337
+ [[maybe_unused]] size_t totalLength = 0 ;
5338
5338
for (size_t i = 0 ; i < segments; i++) {
5339
5339
totalLength += LH.raw (i);
5340
5340
}
@@ -5386,7 +5386,7 @@ void BoundInterpreterFunction::fwdSparseLengthsWeightedSumInstFloatImpl(
5386
5386
auto LH = lengths->getHandle <int32_t >();
5387
5387
5388
5388
size_t segments = lengths->dims ()[0 ];
5389
- size_t totalLength = 0 ;
5389
+ [[maybe_unused]] size_t totalLength = 0 ;
5390
5390
for (dim_t i = 0 ; i < segments; i++) {
5391
5391
totalLength += LH.raw (i);
5392
5392
}
@@ -5427,7 +5427,7 @@ void BoundInterpreterFunction::fwdSparseLengthsWeightedSumInstI8Impl(
5427
5427
auto LH = lengths->getHandle <int32_t >();
5428
5428
5429
5429
dim_t segments = lengths->dims ()[0 ];
5430
- dim_t totalLength = 0 ;
5430
+ [[maybe_unused]] dim_t totalLength = 0 ;
5431
5431
for (dim_t i = 0 ; i < segments; i++) {
5432
5432
totalLength += LH.raw (i);
5433
5433
}
@@ -5503,7 +5503,7 @@ void BoundInterpreterFunction::fwdSparseLengthsWeightedSumGradInst(
5503
5503
auto IH = indices->getHandle <int64_t >();
5504
5504
5505
5505
size_t segments = lengths->dims ()[0 ];
5506
- size_t totalLength = 0 ;
5506
+ [[maybe_unused]] size_t totalLength = 0 ;
5507
5507
for (size_t i = 0 ; i < segments; ++i) {
5508
5508
totalLength += LH.raw (i);
5509
5509
}
@@ -5682,7 +5682,7 @@ void BoundInterpreterFunction::fwdRowwiseQuantizedSparseLengthsWeightedSumImpl(
5682
5682
auto LH = lengths->getHandle <int32_t >();
5683
5683
5684
5684
dim_t segments = lengths->dims ()[0 ];
5685
- dim_t totalLength = 0 ;
5685
+ [[maybe_unused]] dim_t totalLength = 0 ;
5686
5686
for (dim_t i = 0 ; i < segments; i++) {
5687
5687
totalLength += LH.raw (i);
5688
5688
}
@@ -5777,7 +5777,7 @@ void BoundInterpreterFunction::
5777
5777
auto LH = lengths->getHandle <int32_t >();
5778
5778
5779
5779
size_t segments = lengths->dims ()[0 ];
5780
- size_t totalLength = 0 ;
5780
+ [[maybe_unused]] size_t totalLength = 0 ;
5781
5781
for (size_t i = 0 ; i < segments; i++) {
5782
5782
totalLength += LH.raw (i);
5783
5783
}
0 commit comments