musyoku / chainer-sru Goto Github PK
View Code? Open in Web Editor NEWTraining RNNs as Fast as CNNs (Simple Recurrent Unit)
Training RNNs as Fast as CNNs (Simple Recurrent Unit)
Hi, I have used your code for other speech recognition task. and I found that the speed is faster but it have bad result compared to result which use GRU. can you give me some advice? Thanks.
hi @musyoku
your implementation is awesome! I'm very excited about your results!
I noticed there are two main differences between your version and mine:
did you compare the speed between yours and my pytorch version? I would love to hear your feedback and see if there's a chance to improve the pytorch version as well.
thanks a lot!
Hi Musyoku,
I'm implementing SRU in tensorflow with a accelrated implement, I have finished the forward part referening taolei87's code, but I have trouble implementing the gradient part, in taolei87's code, it calculated the grad_u from cuda code, but tensorflow require a grad wrt x, and grad wrt weights.
I found your code have some code about convert from grad_u to grad_x, and grad_w,
backward_gpu:
..
col = conv_nd.im2col_nd_gpu(grad_u, (1,), (1,), (0,), cover_all=False)
grad_x = xp.tensordot(col, W.T[..., None], ((1, 2), (1, 2))).astype(dtype, copy=False).transpose((0, 2, 1)) + grad_highway_x
grad_w = xp.tensordot(grad_u, self.col, ((0, 2), (0, 3))).astype(dtype, copy=False).reshape((feature_dimension * 3, feature_dimension))
But I have some trouble to understand how this code convert grad_u to grad_x, and grad_w,
Could you explain some about it, or maybe there is some well-known paper about this method ?
Thanks in advance.
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.