torch / nngraph

Graph Computation for nn
Other
299 stars 96 forks source link

will the model run faster when I use nngraph? #120

Closed hfxunlp closed 8 years ago

hfxunlp commented 8 years ago

For example, I could get a 2-layer MLP with Container or nngraph, will it be a little bit faster when I use nngraph?

nhynes commented 8 years ago

No. Just look at the difference in complexities of the respective updateOutputs. nn.Sequential is a simple loop whereas nngraph has several loops, allocations, and conditionals.

hfxunlp commented 8 years ago

@nhynes thank you, I think it was something like theano before.