deeplearningparis / dl-attention Goto Github PK
View Code? Open in Web Editor NEWAttention models
Attention models
hello~!
I'm some question!
andy1028@andy1028-Envy:/media/andy1028/data1t/os_prj/github/dl-attention$ th rnn.lua
function: 0x4100c948
vocabulary size: 12
number of parameters in the model: 17420
Training Epoch #1
/home/andy1028/torch/install/bin/luajit: ...e/andy1028/torch/install/share/lua/5.1/autograd/util.lua:97: attempt to call field 'sigmoid' (a nil value)
stack traceback:
...e/andy1028/torch/install/share/lua/5.1/autograd/util.lua:97: in function 'sigmoid'
...ll/share/lua/5.1/autograd/model/RecurrentLSTMNetwork.lua:97: in function 'lstm1'
rnn.lua:55: in function 'fn'
...install/share/lua/5.1/autograd/runtime/codegen/Graph.lua:353: in function 'protectedFn'
...install/share/lua/5.1/autograd/runtime/codegen/Graph.lua:383: in function 'record'
.../install/share/lua/5.1/autograd/runtime/codegen/init.lua:44: in function 'generateFn'
.../install/share/lua/5.1/autograd/runtime/codegen/init.lua:140: in function 'df'
rnn.lua:137: in main chunk
[C]: in function 'dofile'
...1028/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00405ea0
andy1028@andy1028-Envy:/media/andy1028/data1t/os_prj/github/dl-attention$
andy1028@andy1028-Envy:/media/andy1028/data1t/os_prj/github/dl-attention$
andy1028@andy1028-Envy:/media/andy1028/data1t/os_prj/github/dl-attention$ python rnn_batch_attention.py
Generating data...
Vectorization...
X_train shape:(9000, 7)
y_train shape:(9000, 4)
Traceback (most recent call last):
File "rnn_batch_attention.py", line 215, in
main()
File "rnn_batch_attention.py", line 176, in main
natt=20)
File "rnn_batch_attention.py", line 112, in init
gradients = T.grad(nll, self.params)
NameError: global name 'nll' is not defined
andy1028@andy1028-Envy:/media/andy1028/data1t/os_prj/github/dl-attention$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.