Skip to content

Commit cccd7cd

Browse files
authored
fix documentation (#332)
1 parent 1060b6d commit cccd7cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_unittests/ut_helpers/test_dot_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_custom_doc_kernels_layer_normalization(self):
5454
I_2 -> LayerNormalization_3 [label="FLOAT16(d)"];
5555
LayerNormalization_3 -> Add_4 [label="FLOAT16(b,c,d)"];
5656
I_1 -> Add_4 [label="FLOAT16(d)"];
57-
O_5 [label="Z\\nFLOAT16(d)", fillcolor="#aaaaee"];
57+
O_5 [label="Z\\nFLOAT16(b,c,d)", fillcolor="#aaaaee"];
5858
Add_4 -> O_5;
5959
}
6060
"""

onnx_diagnostic/helpers/dot_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def _mkn(obj: object) -> int:
201201
for out in outputs:
202202
if not out.name:
203203
continue
204-
lab = _make_edge_label(inp)
204+
lab = _make_edge_label(out)
205205
rows.append(f' O_{_mkn(out)} [label="{out.name}\\n{lab}", fillcolor="#aaaaee"];')
206206
edge = name_to_ids[out.name], f"O_{_mkn(out)}"
207207
rows.append(f" {edge[0]} -> {edge[1]};")

0 commit comments

Comments
 (0)