Skip to content

Conversation

@daming-lu
Copy link
Collaborator

Add edges to graph. For example, a node as following:

{ "attribute":[ { "ints":[ "2", "2" ], "name":"strides", "type":"INTS" }, { "ints":[ "0", "0", "0", "0" ], "name":"pads", "type":"INTS" }, { "ints":[ "3", "3" ], "name":"kernel_shape", "type":"INTS" } ], "input":[ "data_0", "conv1_w_0", "conv1_b_0" ], "name":"", "opType":"Conv", "output":[ "conv1_1" ] } 

will have 4 edges:

[ {'source': u'data_0', 'target': 'node_0', 'label': 'label_0'}, {'source': u'conv1_w_0', 'target': 'node_0', 'label': 'label_1'}, {'source': u'conv1_b_0', 'target': 'node_0', 'label': 'label_2'}, {'source': 'node_0', 'target': u'conv1_1', 'label': 'label_3'} ] 
Copy link
Contributor

@Superjomn Superjomn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Json files are too large.

@@ -0,0 +1,2072 @@
{
"input": [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this JSON file is too large, can we use a smaller model or just some pseudo-data?
just checking the logic do not need a full model.

If others need a complex JSON, give them offline seems more reasonable.

"name": "conv1/7x7_s2_w_0",
"shape": [
"64",
"3",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too large JSON file.

@@ -0,0 +1,8 @@
## Note
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to add a download script

@daming-lu daming-lu changed the title Add edges to graph. Add squeezenet to mock data. Added edges to graph. Also added script to download mock models Dec 28, 2017
Copy link
Contributor

@Superjomn Superjomn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daming-lu daming-lu merged commit b079592 into develop Dec 28, 2017
Superjomn pushed a commit to Superjomn/VisualDL-1 that referenced this pull request Dec 29, 2017
Superjomn pushed a commit to Superjomn/VisualDL-1 that referenced this pull request Dec 29, 2017
…lePaddle#39) * Add edges to graph. Add squeezenet to mock data. * rm json * rm pb files and add links to them * Add edges to graph. Add squeezenet to mock data. rm json rm pb files and add links to them * added download script * typo
jacquesqiao pushed a commit to jacquesqiao/VisualDL that referenced this pull request Jan 12, 2018
…lePaddle#39) * Add edges to graph. Add squeezenet to mock data. * rm json * rm pb files and add links to them * Add edges to graph. Add squeezenet to mock data. rm json rm pb files and add links to them * added download script * typo
jacquesqiao added a commit to jacquesqiao/VisualDL that referenced this pull request Jan 13, 2018
@jacquesqiao jacquesqiao deleted the add_edge_to_graph_data branch January 13, 2018 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants