Skip to content

Commit

Permalink
Use html-like table instead of record (#51)
Browse files Browse the repository at this point in the history
* Use html-like table instead of record

* change min_size factor
  • Loading branch information
mert-kurttutan authored Dec 17, 2022
1 parent 0d8433e commit 078d227
Show file tree
Hide file tree
Showing 85 changed files with 23,946 additions and 2,080 deletions.
896 changes: 828 additions & 68 deletions tests/test_output/custom_densenet_model.gv

Large diffs are not rendered by default.

Binary file modified tests/test_output/custom_densenet_model.gv.2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_output/custom_densenet_model.gv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
146 changes: 133 additions & 13 deletions tests/test_output/dict_input.gv
Original file line number Diff line number Diff line change
@@ -1,19 +1,139 @@
strict digraph model {
graph [ordering=in size="12.0,12.0"]
node [align=left fontname="Linux libertine" fontsize=10 height=0.2 ranksep=0.1 shape=record style=filled]
node [align=left fontname="Linux libertine" fontsize=10 height=0.2 margin=0 ranksep=0.1 shape=plaintext style=filled]
edge [fontsize=10]
0 [label="input-tensor\ndepth:0|(1, 300)" fillcolor=lightyellow]
1 [label="input-tensor\ndepth:0|(1, 300)" fillcolor=lightyellow]
2 [label="Linear\ndepth:1|{input:|output:}|{(1, 300)|(1, 50)}" fillcolor=darkseagreen1]
3 [label="relu\ndepth:1|{input:|output:}|{(1, 50)|(1, 50)}" fillcolor=aliceblue]
4 [label="Linear\ndepth:1|{input:|output:}|{(1, 50)|(1, 10)}" fillcolor=darkseagreen1]
5 [label="type\ndepth:1|{input:|output:}|{(1, 300)|(1, 300)}" fillcolor=aliceblue]
6 [label="Linear\ndepth:1|{input:|output:}|{(1, 300)|(1, 50)}" fillcolor=darkseagreen1]
7 [label="relu\ndepth:1|{input:|output:}|{(1, 50)|(1, 50)}" fillcolor=aliceblue]
8 [label="Linear\ndepth:1|{input:|output:}|{(1, 50)|(1, 10)}" fillcolor=darkseagreen1]
9 [label="cat\ndepth:1|{input:|output:}|{2 x (1, 10)|(2, 10)}" fillcolor=aliceblue]
10 [label="log_softmax\ndepth:1|{input:|output:}|{(2, 10)|(2, 10)}" fillcolor=aliceblue]
11 [label="output-tensor\ndepth:0|(2, 10)" fillcolor=lightyellow]
0 [label=<
<TABLE BORDER="0" CELLBORDER="1"
CELLSPACING="0" CELLPADDING="4">
<TR><TD>input-tensor<BR/>depth:0</TD><TD>(1, 300)</TD></TR>
</TABLE>> fillcolor=lightyellow]
1 [label=<
<TABLE BORDER="0" CELLBORDER="1"
CELLSPACING="0" CELLPADDING="4">
<TR><TD>input-tensor<BR/>depth:0</TD><TD>(1, 300)</TD></TR>
</TABLE>> fillcolor=lightyellow]
2 [label=<
<TABLE BORDER="0" CELLBORDER="1"
CELLSPACING="0" CELLPADDING="4">
<TR>
<TD ROWSPAN="2">Linear<BR/>depth:1</TD>
<TD COLSPAN="2">input:</TD>
<TD COLSPAN="2">(1, 300) </TD>
</TR>
<TR>
<TD COLSPAN="2">output: </TD>
<TD COLSPAN="2">(1, 50) </TD>
</TR>
</TABLE>> fillcolor=darkseagreen1]
3 [label=<
<TABLE BORDER="0" CELLBORDER="1"
CELLSPACING="0" CELLPADDING="4">
<TR>
<TD ROWSPAN="2">relu<BR/>depth:1</TD>
<TD COLSPAN="2">input:</TD>
<TD COLSPAN="2">(1, 50) </TD>
</TR>
<TR>
<TD COLSPAN="2">output: </TD>
<TD COLSPAN="2">(1, 50) </TD>
</TR>
</TABLE>> fillcolor=aliceblue]
4 [label=<
<TABLE BORDER="0" CELLBORDER="1"
CELLSPACING="0" CELLPADDING="4">
<TR>
<TD ROWSPAN="2">Linear<BR/>depth:1</TD>
<TD COLSPAN="2">input:</TD>
<TD COLSPAN="2">(1, 50) </TD>
</TR>
<TR>
<TD COLSPAN="2">output: </TD>
<TD COLSPAN="2">(1, 10) </TD>
</TR>
</TABLE>> fillcolor=darkseagreen1]
5 [label=<
<TABLE BORDER="0" CELLBORDER="1"
CELLSPACING="0" CELLPADDING="4">
<TR>
<TD ROWSPAN="2">type<BR/>depth:1</TD>
<TD COLSPAN="2">input:</TD>
<TD COLSPAN="2">(1, 300) </TD>
</TR>
<TR>
<TD COLSPAN="2">output: </TD>
<TD COLSPAN="2">(1, 300) </TD>
</TR>
</TABLE>> fillcolor=aliceblue]
6 [label=<
<TABLE BORDER="0" CELLBORDER="1"
CELLSPACING="0" CELLPADDING="4">
<TR>
<TD ROWSPAN="2">Linear<BR/>depth:1</TD>
<TD COLSPAN="2">input:</TD>
<TD COLSPAN="2">(1, 300) </TD>
</TR>
<TR>
<TD COLSPAN="2">output: </TD>
<TD COLSPAN="2">(1, 50) </TD>
</TR>
</TABLE>> fillcolor=darkseagreen1]
7 [label=<
<TABLE BORDER="0" CELLBORDER="1"
CELLSPACING="0" CELLPADDING="4">
<TR>
<TD ROWSPAN="2">relu<BR/>depth:1</TD>
<TD COLSPAN="2">input:</TD>
<TD COLSPAN="2">(1, 50) </TD>
</TR>
<TR>
<TD COLSPAN="2">output: </TD>
<TD COLSPAN="2">(1, 50) </TD>
</TR>
</TABLE>> fillcolor=aliceblue]
8 [label=<
<TABLE BORDER="0" CELLBORDER="1"
CELLSPACING="0" CELLPADDING="4">
<TR>
<TD ROWSPAN="2">Linear<BR/>depth:1</TD>
<TD COLSPAN="2">input:</TD>
<TD COLSPAN="2">(1, 50) </TD>
</TR>
<TR>
<TD COLSPAN="2">output: </TD>
<TD COLSPAN="2">(1, 10) </TD>
</TR>
</TABLE>> fillcolor=darkseagreen1]
9 [label=<
<TABLE BORDER="0" CELLBORDER="1"
CELLSPACING="0" CELLPADDING="4">
<TR>
<TD ROWSPAN="2">cat<BR/>depth:1</TD>
<TD COLSPAN="2">input:</TD>
<TD COLSPAN="2">2 x (1, 10) </TD>
</TR>
<TR>
<TD COLSPAN="2">output: </TD>
<TD COLSPAN="2">(2, 10) </TD>
</TR>
</TABLE>> fillcolor=aliceblue]
10 [label=<
<TABLE BORDER="0" CELLBORDER="1"
CELLSPACING="0" CELLPADDING="4">
<TR>
<TD ROWSPAN="2">log_softmax<BR/>depth:1</TD>
<TD COLSPAN="2">input:</TD>
<TD COLSPAN="2">(2, 10) </TD>
</TR>
<TR>
<TD COLSPAN="2">output: </TD>
<TD COLSPAN="2">(2, 10) </TD>
</TR>
</TABLE>> fillcolor=aliceblue]
11 [label=<
<TABLE BORDER="0" CELLBORDER="1"
CELLSPACING="0" CELLPADDING="4">
<TR><TD>output-tensor<BR/>depth:0</TD><TD>(2, 10)</TD></TR>
</TABLE>> fillcolor=lightyellow]
0 -> 2
1 -> 5
2 -> 3
Expand Down
Binary file modified tests/test_output/dict_input.gv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 078d227

Please sign in to comment.