Skip to content

Commit

Permalink
Merge pull request #951 from pouyaAB/master
Browse files Browse the repository at this point in the history
fixing figures in rnn
  • Loading branch information
vdumoulin committed Jan 27, 2016
2 parents ed481ef + 1094719 commit 1bce70e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/rnn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ receives (figure below).
x_1; x_2; x_3;

node [shape=plaintext];
h_0 [label="(0, 0, 0)"]; h_1 [label="(1, 1, 1)"];
h_2 [label="(2, 2, 2)"]; h_3 [label="(3, 3, 3)"];
h_0 [label="(0, 0, 0)"]; h_1 [label="(2, 2, 2)"];
h_2 [label="(4, 4, 4)"]; h_3 [label="(6, 6, 6)"];

node [shape=diamond,regular=1,label="+"];
plus_1; plus_2; plus_3;
Expand Down Expand Up @@ -186,21 +186,23 @@ figure below).

node [shape=plaintext];
h1_0 [label="(0, 0, 0)"]; h1_1 [label="(1, 1, 1)"];
h1_2 [label="(4, 4, 4)"]; h1_3 [label="(12, 12, 12)"];
h1_2 [label="(3, 3, 3)"]; h1_3 [label="(8, 8, 8)"];
h2_0 [label="(0, 0, 0)"]; h2_1 [label="(1, 1, 1)"];
h2_2 [label="(3, 3, 3)"]; h2_3 [label="(8, 8, 8)"];
h2_2 [label="(4, 4, 4)"]; h2_3 [label="(12, 12, 12)"];

node [shape=diamond,regular=1,label="+"];
plus_1_1; plus_1_2; plus_1_3; plus_2_1; plus_2_2; plus_2_3;

x_1 -> plus_1_1; x_2 -> plus_1_2; x_3 -> plus_1_3;
h1_0 -> plus_1_1 -> h1_1 -> plus_1_2 -> h1_2 -> plus_1_3 -> h1_3;
plus_1_1 -> plus_2_1; plus_1_2 -> plus_2_2; plus_1_3 -> plus_2_3;
h2_0 -> plus_2_1 -> h2_1 -> plus_2_2 -> h2_2 -> plus_2_3 -> h2_3;
h2_0 -> plus_1_1; h2_1 -> plus_1_2; h2_2 -> plus_1_3;



edge [style=invis];
h2_0 -> h1_0; h2_1 -> h1_1; h2_2 -> h1_2; h2_3 -> h1_3;
plus_2_1 -> plus_1_1; plus_2_2 -> plus_1_2; plus_2_3 -> plus_1_3;
h2_0 -> h1_0; h2_1 -> h1_1; h2_2 -> h1_2;

{ rank=source; h2_0, h2_1, h2_2, h2_3, plus_2_1, plus_2_2, plus_2_3 }
{ rank=same; h1_0, h1_1, h1_2, h1_3, plus_1_1, plus_1_2, plus_1_3 }
Expand Down

0 comments on commit 1bce70e

Please sign in to comment.