From 4921ebadf8cb22db42050582bb3ff6d41d16204b Mon Sep 17 00:00:00 2001 From: Umut Date: Mon, 22 Nov 2021 15:57:32 +0300 Subject: [PATCH] chore(mlir): leave a note about the tensor-scalar workaround --- concrete/common/mlir/graph_converter.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/concrete/common/mlir/graph_converter.py b/concrete/common/mlir/graph_converter.py index 7fdd99d21..702057021 100644 --- a/concrete/common/mlir/graph_converter.py +++ b/concrete/common/mlir/graph_converter.py @@ -35,6 +35,12 @@ class OPGraphConverter(ABC): additional_conversion_info = self._generate_additional_info_dict(op_graph) + # There are no tensor +*- scalar operations in the compiler + # But such operations are used commonly so we need to support them + # So, we implemented some workarounds (pull request #970) + # Once we have native support, this workaround shall be removed (issue #837) + # (most changes in #970 shall be reverted) + # { node1: "%arg0", node2: "%0", node3: "%1" } nodes_to_mlir_names: Dict[IntermediateNode, str] = {}