From 7a53d26d91d9ffee2bd55e46e43af09b00f97115 Mon Sep 17 00:00:00 2001 From: Axel Farrugia <axel.farrugia@cea.fr> Date: Wed, 23 Apr 2025 18:34:43 +0200 Subject: [PATCH] [Fix] Remove redundant code --- aidge_export_cpp/operators/CppElemWise.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/aidge_export_cpp/operators/CppElemWise.py b/aidge_export_cpp/operators/CppElemWise.py index e39fe15..9f4f20a 100644 --- a/aidge_export_cpp/operators/CppElemWise.py +++ b/aidge_export_cpp/operators/CppElemWise.py @@ -38,23 +38,6 @@ class CppElemWise(ExportNodeCpp): # else: # self.attributes["coef_value"] = node.get_operator().get_output(0)[0] - ## Set the scaling type - if self.attributes["coef_value"] != 1: - self.attributes["rescaling"] = "FixedPointScaling" - elif self.attributes["shift_value"] != 0: - self.attributes["rescaling"] = "SingleShiftScaling" - - ## Get the scaling values - for prod in node.get_parents(): - if prod is not None: - if prod.type() == "Producer": - if prod.attributes().has_attr("quantization.ptq.ShiftAmount"): - self.attributes["shift_value"] = prod.attributes().quantization.ptq.ShiftAmount - # elif prod.attributes().has_attr("quantization.ptq.CompensationCoeff"): - # self.attributes["coef_value"] = prod.attributes().quantization.ptq.CompensationCoeff - else: - self.attributes["coef_value"] = prod.get_operator().get_output(0)[0] - ## Set the scaling type if self.attributes["coef_value"] != 1: self.attributes["rescaling"] = "FixedPointScaling" -- GitLab