We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentd83ff4e commit5cbe8e5Copy full SHA for 5cbe8e5
onnx_array_api/plotting/text_plot.py
@@ -824,7 +824,10 @@ def str_node(indent, node):
824
rows.append(f"opset: domain={opset.domain!r} version={opset.version!r}")
825
ifhasattr(model,"graph"):
826
ifmodel.doc_string:
827
-rows.append(f"doc_string:{model.doc_string}")
+iflen(model.doc_string)<55:
828
+rows.append(f"doc_string:{model.doc_string}")
829
+else:
830
+rows.append(f"doc_string:{model.doc_string[:55]}...")
831
main_model=model
832
model=model.graph
833
else:
@@ -1044,7 +1047,10 @@ def _mark_link(rows, lengths, r1, r2, d):
1044
1047
forfctinmain_model.functions:
1045
1048
rows.append(f"----- function name={fct.name} domain={fct.domain}")
1046
1049
iffct.doc_string:
-rows.append(f"----- doc_string:{fct.doc_string}")
1050
+iflen(fct.doc_string)<55:
1051
+rows.append(f"----- doc_string:{fct.doc_string}")
1052
1053
+rows.append(f"----- doc_string:{fct.doc_string[:55]}...")
1054
res=onnx_simple_text_plot(
1055
fct,
1056
verbose=verbose,