Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit d4250ef

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove unused variables in glow/glow/torch_glow/src/PyTorchModelLoader.cpp
Reviewed By: dmm-fb Differential Revision: D52981081 fbshipit-source-id: f71b76807c7931a6f356587fb79bc752e9b6b908
1 parent 66f4fa9 commit d4250ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch_glow/src/PyTorchModelLoader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2814,7 +2814,7 @@ Error PyTorchModelLoader::loadQuantizedLeakyRelu(
28142814
inputs[QuantizedLeakyReluInputs::alpha])));
28152815

28162816
// inplace
2817-
bool inplace;
2817+
[[maybe_unused]] bool inplace;
28182818
ASSIGN_VALUE_OR_RETURN_ERR(inplace,
28192819
iValToBool(getGlowIValueForValue(
28202820
inputs[QuantizedLeakyReluInputs::inplace])));
@@ -8473,7 +8473,7 @@ Error PyTorchModelLoader::loadEmbeddingBag(const torch::jit::Node *ptNode) {
84738473

84748474
RETURN_ERR_IF_NOT(mode == 0, "Currently only support mode='sum'");
84758475

8476-
bool sparse;
8476+
[[maybe_unused]] bool sparse;
84778477
ASSIGN_VALUE_OR_RETURN_ERR(sparse, iValToBool(getGlowIValueForValue(
84788478
inputs[EmbeddingBagInputs::sparse])));
84798479

0 commit comments

Comments
 (0)