+dag:setInput(a)
+dag:setOutput({ d, e })
+
+-- Check the output of the dot file
+print('Writing /tmp/graph.dot')
+dag:saveDot('/tmp/graph.dot')
+
+-- Let's make a model where the dag is inside another nn.Container.
+model = nn.Sequential()
+ :add(nn.Linear(50, 50))
+ :add(dag)
+ :add(nn.CAddTable())
+
+criterion = nn.MSECriterion()
+
+-- model:cuda()
+-- criterion:cuda()
+-- torch.setdefaulttensortype('torch.CudaTensor')
+-- epsilon = 1e-4