diff --git a/aidge_export_cpp/operators/CppElemWise.py b/aidge_export_cpp/operators/CppElemWise.py index e39fe1524c67b6dc814d93288fd0b92cdca0893f..9f4f20a8074cabbe00c2391d74471df6cc7f18dd 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"