File size: 732 Bytes
578b6a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
digraph G {

    // Main styles
    nodesep=0.3; ranksep=0.15;

    node [shape=rect, fillcolor=darkorange, color=white, style=filled, fontsize=11, fontname="arial", height=0.2];
    edge [color=gray, arrowsize=0.5];

    // Layout
    {rank=same;input;prev_hidden}

    input -> embedding;
    embedding -> relu;
    relu -> gru;

    prev_hidden -> gru;
    gru -> out;
    gru -> hidden;

    out -> softmax;
    softmax -> output;

    {rank=same;output;hidden}

    // Layer nodes
    embedding [fillcolor=dodgerblue, fontcolor=white];
    gru [fillcolor=dodgerblue, fontcolor=white];
    out [fillcolor=dodgerblue, fontcolor=white];

    // Function nodes
    relu [fillcolor=palegreen];
    softmax [fillcolor=palegreen];

}