Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
xadupre committed Feb 19, 2025
commit da08d731578984720027ed93f5c7eec72108a120
7 changes: 5 additions & 2 deletions onnx_array_api/translate_api/builder_emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,13 @@ def _emit_node(self, **kwargs: Dict[str, Any]) -> List[str]:
raise NotImplementedError("Graph attribute not supported yet.")
args.append(f"{k}={vatt}")

outs = ", ".join(map(self._clean_result_name, outputs))
cleaned_outputs = list(map(self._clean_result_name, outputs))
outs = ", ".join(cleaned_outputs)
inps = ", ".join(map(self._clean_result_name, inputs))
op_type = self._emit_node_type(op_type, domain)
sdomain = "" if not domain else f", domain={domain!r}"
# Let's add output names to make it easier to debug.
soutputs = f", outputs={cleaned_outputs}"
sdomain = soutputs if not domain else f", domain={domain!r}{soutputs}"
if args:
sargs = ", ".join(args)
if inps:
Expand Down