From f74bff6ae964f30d979abaa560fae3dd8114d978 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Sat, 4 May 2024 07:02:35 -0700 Subject: [PATCH] Remove unused-but-set variables in glow/glow/lib/Backends/Interpreter/InterpreterNodes.cpp +1 Reviewed By: palmje, dmm-fb Differential Revision: D56887280 --- lib/Backends/Interpreter/InterpreterNodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Backends/Interpreter/InterpreterNodes.cpp b/lib/Backends/Interpreter/InterpreterNodes.cpp index 2c9650df01..4dad851c4f 100644 --- a/lib/Backends/Interpreter/InterpreterNodes.cpp +++ b/lib/Backends/Interpreter/InterpreterNodes.cpp @@ -6695,7 +6695,7 @@ void BoundInterpreterFunction::fwdIntNBitSplitEmbeddingWeightedBagsImpl( const auto placement = weightsPlacementH.raw(t); assert(placement != WeightsPlacement::DEVICE); auto weightsH = uvmWeightsH; - auto maxWeightsBytes = maxUvmWeightsBytes; + [[maybe_unused]] auto maxWeightsBytes = maxUvmWeightsBytes; if (placement == WeightsPlacement::HOST) { weightsH = devWeightsH; maxWeightsBytes = maxDevWeightsBytes;