lua---nnx
lua---nnx copied to clipboard
An extension to Torch7's nn package.
In the SoftMaxTree example given in the readme, it assumed we already know the label of target. ``` > input = torch.randn(5,10) > target = torch.IntTensor{20,24,27,10,12} > gradOutput = torch.randn(5)...
I'm seeing: ``` /usr/local/share/lua/5.1/nnx/SoftMaxTree.lua:171: attempt to call field 'SoftMaxTree_updateOutput' (a nil value) stack traceback: /usr/local/share/lua/5.1/nnx/SoftMaxTree.lua:171: in function 'func' /usr/local/share/lua/5.1/nngraph/gmodule.lua:252: in function 'neteval' /usr/local/share/lua/5.1/nngraph/gmodule.lua:287: in function 'forward' runtrain.lua:194: in function 'opfunc'...
If I run optim.checkgrad, it fails, because the tensors returned by `SoftMaxTree.parmeters` are not actually the underlying `smt.weight`, and `smt.gradWeigth` tensor. If I do `SoftMaxTree.parameters = nil`, thne grad check...
Using nnx.SoftmaxTree() in a model saved using the module dpnn.Serial():mediumSerial() causes gradInput table to be cleared. This is a problem because if you'd like to unserialize the model and then...
I installed the luarocks sys but it seems the filep function doesnt exist. no trace of it in the code of sys on github and it's not mentioned in the...
There is very little documentation in the SpatialPyramid function, and this makes it difficult for newcomers to understand what is going on. I have been able to understand what the...
Paired PullTable and PushTable instances each have pointers to each other. This means that when we call pullTable:cuda(), it calls :cuda() on the corresponding PushTable, which calls, :cuda() on the...
Paired PullTable and PushTable instances each have pointers to each other. This means that when we call pullTable:cuda(), it calls :cuda() on the corresponding PushTable, which calls, :cuda() on the...
Hi, I'm attempting to train a network consisting of a recurrent layer on top of a time delay conv net using nn.Recurrent. It runs fine, albeit slowly, on my Macbook,...
nnx example
Hi, am very new with nnx and i was wondering if there's a simple example of training and testing an RNN with nnx library like it's the case with the...