From 8e2990ca7639fdf1192d5a56a00c92f7488edc6d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ivan=20Vagin/AI=20Tools=20Lab=20/SRR/Engineer/=EC=82=BC?= =?utf8?q?=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 4 Feb 2019 19:25:34 +0300 Subject: [PATCH] [nnc] Removed unused variables (#3000) Removed unused variables from op creators Signed-off-by: Ivan Vagin --- contrib/nnc/passes/onnx_frontend/ONNXOpCreator.cpp | 3 --- contrib/nnc/passes/tflite_frontend/tflite_op_creator.cpp | 2 -- 2 files changed, 5 deletions(-) diff --git a/contrib/nnc/passes/onnx_frontend/ONNXOpCreator.cpp b/contrib/nnc/passes/onnx_frontend/ONNXOpCreator.cpp index 9c547d2..f99b01d 100644 --- a/contrib/nnc/passes/onnx_frontend/ONNXOpCreator.cpp +++ b/contrib/nnc/passes/onnx_frontend/ONNXOpCreator.cpp @@ -511,8 +511,6 @@ ONNXOpCreator::convertGemm(const std::vector& inputs, bool trans_a = found ? ivalue : 0; std::tie (found, ivalue) = getIntAttribute(onnx_node, "transB"); bool trans_b = found ? ivalue : 0; - std::tie(found, ivalue) = getIntAttribute(onnx_node, "broadcast"); - bool broadcast = found ? ivalue : 0; std::tie (found, fvalue) = getFloatAttribute(onnx_node, "alpha"); float alpha_val = found ? fvalue : 1.0; std::tie (found, fvalue) = getFloatAttribute(onnx_node, "beta"); @@ -544,7 +542,6 @@ ONNXOpCreator::convertGemm(const std::vector& inputs, // auto input_c = inputs[2]; auto beta_tensor = createTensor(beta_val, input_c.getShape()); - // TODO: check 'broadcast' attribute here if ((mult_a_b.rank() == 2) && (input_c.getShape().rank() == 1)) { beta_tensor = TensorVariant(beta_tensor, mult_a_b); } diff --git a/contrib/nnc/passes/tflite_frontend/tflite_op_creator.cpp b/contrib/nnc/passes/tflite_frontend/tflite_op_creator.cpp index 6c6e746..184683d 100644 --- a/contrib/nnc/passes/tflite_frontend/tflite_op_creator.cpp +++ b/contrib/nnc/passes/tflite_frontend/tflite_op_creator.cpp @@ -486,8 +486,6 @@ TFLiteOpCreator::convertStridedSlice(const ::tflite::StridedSliceOptions* opts, int32_t begin_mask = opts->begin_mask(); int32_t end_mask = opts->end_mask(); - int32_t ellipsis_mask = opts->ellipsis_mask(); - int32_t new_axis_mask = opts->new_axis_mask(); int32_t shrink_axis_mask = opts->shrink_axis_mask(); const auto& input_shape = input.getShape(); -- 2.7.4