-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update data format for graph #32
Conversation
docs/graph_data_format.md
Outdated
} | ||
], | ||
"edge": [ | ||
{"source": "x", "target": "1"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
把label也加上吧
{"source": "x", "target": "1", "label": "x"}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我竟然忘了,失误
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! please @daming-lu review ~
docs/graph_data_format.md
Outdated
} | ||
], | ||
"edge": [ | ||
{"source": "x", "target": "1", "label": "label1"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'X' 应该大写
"data_type": "FLOAT", | ||
"name": "Y", | ||
"shape": [ | ||
"1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是否应该用至少二维维度?这样更generic?比如:
W1: 3 x 2
X: 2 x 1
B1: 3 x 1
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shape是一个vector, 比如 [1,2,3]就代表 1 X 2 X 3的三维矩阵,vector<int>
足够表达任意维度了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不好意思,我误解了,确实shape多几个维度更有代表性
} | ||
], | ||
"edge": [ | ||
{"source": "X", "target": "1", "label": "label1"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 我们可以把 source -> from, target -> to
- 这个例子漏掉了从node出来的边,比如,第一个node有4条边
W1 -> node_0
B1 -> node_0
X -> node_0
node_0 -> H1 (出边漏掉了!) - 用名字 ”X" 不知道方不方便? 我想可以用 类型+下标,比如 input_0, node_1 。看看前端怎么render方便。个人感觉如果用名字 “X",”W2" 什么的,则需要用 map 来加速查找。既然我们已经有 array了,用下标比较方便。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 这个名称就不改了,之前的可视化,edge 都是 target, source。
- 理解是 "H1" 的作用就是连接 node 1 , node2.
- 这个name 是作为 keyid的,用来查找node,后端怎么取都行。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.