Skip to content

Commit 9b0b5d6

Browse files
authored
improves display (#31)
1 parent 6bea970 commit 9b0b5d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

onnx_array_api/plotting/text_plot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ def str_node(indent, node):
766766
val = val[:10] + "..."
767767
elif att.type == AttributeProto.STRING:
768768
val = str(att.s)
769+
if len(val) > 50:
770+
val = val[:40] + "..." + val[-10:]
769771
elif att.type == AttributeProto.STRINGS:
770772
n_val = list(att.strings)
771773
if len(n_val) < 5:

0 commit comments

Comments
 (0)