提交 4f21c1b1 编写于 作者: D dolphin8

add net draw script

上级 c4d46260
BEGIN {
print "digraph {"
}
/op:/ {
id++
op = $NF
opname = op "_" id
print opname "[\"label\"=\"" op " [" id "]" "\"]"
}
/input/ {
type = "input"
}
/output/ {
type = "output"
}
/argument/ {
if (type == "output") {
output[$NF] = opname
} else if (type == "input") {
if (output[$NF]) {
print output[$NF] " -> " opname
}
}
}
END {
print "}"
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册