forked from soumith/cvpr2015
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CharLstm.dot
110 lines (110 loc) · 6.51 KB
/
CharLstm.dot
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
digraph G {
labelloc="t";
label="CharLstm";
node [shape = oval];
n1[label="Node1\nmodule = nn.CAddTable\lmapindex = {Node7,Node8}" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:51"];
n2[label="Node2\ninput = {}\lmapindex = {Node1,Node3,Node4,Node5,Node6}" tooltip="[[C]]:-1"];
n3[label="x (3)\nmodule = nn.CMulTable\lmapindex = {Node9,Node10}" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:56"];
n4[label="Node4\nmodule = nn.CAddTable\lmapindex = {Node11,Node12}" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:51"];
n5[label="top_h (5)\nmodule = nn.CMulTable\lmapindex = {Node13,Node14}" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:56"];
n6[label="logsoft (6)\nmodule = nn.LogSoftMax" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:66"];
n7[label="Node7\nmodule = nn.CMulTable\lmapindex = {Node16,Node17}" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:52"];
n8[label="Node8\nmodule = nn.CMulTable\lmapindex = {Node18,Node19}" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:53"];
n9[label="out_gate[1] (9)\nmodule = nn.Narrow" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:45" fillcolor="firebrick1"];
n10[label="Node10\nmodule = nn.Tanh" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:56"];
n11[label="Node11\nmodule = nn.CMulTable\lmapindex = {Node21,Node22}" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:52"];
n12[label="Node12\nmodule = nn.CMulTable\lmapindex = {Node23,Node24}" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:53"];
n13[label="out_gate[2] (13)\nmodule = nn.Narrow" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:45" fillcolor="firebrick1"];
n14[label="Node14\nmodule = nn.Tanh" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:56"];
n15[label="proj (15)\nmodule = nn.Linear(128 -> 65)" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:65"];
n16[label="forget_gate[1] (16)\nmodule = nn.Narrow" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:43" fillcolor=darkorchid];
n17[label="prev_c[1] (17)\nmodule = nn.Identity" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:11" fillcolor=blue];
n18[label="in_gate[1] (18)\nmodule = nn.Narrow" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:41" fillcolor=aquamarine];
n19[label="Node19\nmodule = nn.Tanh" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:49"];
n20[label="Node20\nmodule = nn.Sigmoid" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:40"];
n21[label="forget_gate[2] (21)\nmodule = nn.Narrow" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:43" fillcolor=darkorchid];
n22[label="prev_c[2] (22)\nmodule = nn.Identity" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:11" fillcolor=blue];
n23[label="in_gate[2] (23)\nmodule = nn.Narrow" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:41" fillcolor=aquamarine];
n24[label="Node24\nmodule = nn.Tanh" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:49"];
n25[label="Node25\nmodule = nn.Sigmoid" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:40"];
n26[label="Node26\ninput = {}\lselectindex = 2" tooltip="[[C]]:-1-2"];
n27[label="Node27\nmodule = nn.Narrow" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:48"];
n28[label="Node28\nmodule = nn.Narrow" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:39"];
n29[label="Node29\ninput = {}\lselectindex = 4" tooltip="[[C]]:-1-4"];
n30[label="Node30\nmodule = nn.Narrow" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:48"];
n31[label="Node31\nmodule = nn.Narrow" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:39"];
n32[label="Node32\nnSplitOutputs = 5" tooltip="[[C]]:-1-mnode"];
n33[label="Node33\nmodule = nn.CAddTable\lmapindex = {Node36,Node37}" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:37"];
n34[label="Node34\nmodule = nn.CAddTable\lmapindex = {Node38,Node39}" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:37"];
n35[label="Node35\ninput = {}" tooltip="[[C]]:-1"];
n36[label="i2h[1] (36)\nmodule = nn.Linear(65 -> 512)" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:33" fillcolor=yellow];
n37[label="h2h[1] (37)\nmodule = nn.Linear(128 -> 512)" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:35" fillcolor=green];
n38[label="i2h[2] (38)\nmodule = nn.Linear(128 -> 512)" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:33" fillcolor=yellow];
n39[label="h2h[2] (39)\nmodule = nn.Linear(128 -> 512)" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:35" fillcolor=green];
n40[label="Node40\nmodule = OneHot" tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:25"];
n41[label="prev_c[1] (41)\nmodule = nn.Identity" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:13" fillcolor=blue];
n42[label="prev_c[2] (42)\nmodule = nn.Identity" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:13" fillcolor=blue];
n43[label="x (43)\nmodule = nn.Identity" style=filled tooltip="[...e/ubuntu/torch/install/share/lua/5.1/crnn/model/LSTM.lua]:8" fillcolor=blue];
n44[label="Node44\ninput = {}\lselectindex = 3" tooltip="[[C]]:-1-3"];
n45[label="Node45\ninput = {}\lselectindex = 5" tooltip="[[C]]:-1-5"];
n46[label="Node46\ninput = {}\lselectindex = 1" tooltip="[[C]]:-1-1"];
n1 -> n2;
n3 -> n2;
n4 -> n2;
n5 -> n2;
n6 -> n2;
n7 -> n1;
n8 -> n1;
n9 -> n3;
n10 -> n3;
n11 -> n4;
n12 -> n4;
n13 -> n5;
n14 -> n5;
n15 -> n6;
n16 -> n7;
n17 -> n7;
n18 -> n8;
n19 -> n8;
n20 -> n9;
n1 -> n10;
n21 -> n11;
n22 -> n11;
n23 -> n12;
n24 -> n12;
n25 -> n13;
n4 -> n14;
n5 -> n15;
n20 -> n16;
n26 -> n17;
n20 -> n18;
n27 -> n19;
n28 -> n20;
n25 -> n21;
n29 -> n22;
n25 -> n23;
n30 -> n24;
n31 -> n25;
n32 -> n26;
n33 -> n27;
n33 -> n28;
n32 -> n29;
n34 -> n30;
n34 -> n31;
n35 -> n32;
n36 -> n33;
n37 -> n33;
n38 -> n34;
n39 -> n34;
n40 -> n36;
n41 -> n37;
n3 -> n38;
n42 -> n39;
n43 -> n40;
n44 -> n41;
n45 -> n42;
n46 -> n43;
n32 -> n44;
n32 -> n45;
n32 -> n46;
}