Skip to content

Commit

Permalink
chore(frontend-python): converter, getattr call with default
Browse files Browse the repository at this point in the history
  • Loading branch information
rudy-6-4 committed Jan 25, 2024
1 parent 0376001 commit 8a6d1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontends/concrete-python/concrete/fhe/mlir/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def node(self, ctx: Context, node: Node, preds: List[Conversion]) -> Conversion:
operation = "constant" if node.operation == Operation.Constant else node.properties["name"]
assert operation not in ["convert", "node"]

converter = getattr(self, operation) if hasattr(self, operation) else self.tlu
converter = getattr(self, operation, self.tlu)
conversion = converter(ctx, node, preds)
conversion.set_original_bit_width(node.properties["original_bit_width"])

Expand Down

0 comments on commit 8a6d1ff

Please sign in to comment.