提交 7685c4a0 authored 作者: Frederic Bastien's avatar Frederic Bastien

more compact Composite of Composite string.

上级 6cdbe8d7
......@@ -1804,6 +1804,8 @@ class Composite(ScalarOp):
for n in env.nodes:
if hasattr(n.op,"name") and n.op.name is not None:
v=n.op.name
if v.startswith("Composite"):
v = v[len("Composite"):]
else: v=n.op.__class__.__name__
l.append(v)
self.name="Composite{"+",".join(l)+"}"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论