lancopku / adanorm Goto Github PK
View Code? Open in Web Editor NEWCode for "Understanding and Improving Layer Normalization"
Code for "Understanding and Improving Layer Normalization"
normalization module这个模块的公式的实现和你的论文中的公式有点出入,我感觉。比如你代码中是
elif self.mode == 'adanorm':
mean = input.mean(-1, keepdim=True)
std = input.std(-1, keepdim=True)
input = input - mean
mean = input.mean(-1, keepdim=True)
graNorm = (1 / 10 * (input - mean) / (std + self.eps)).detach()
input_norm = (input - input * graNorm) / (std + self.eps)
return input_norm*self.adanorm_scale
这一块代码你check一下和论文中这个公式有点出入的。论文是《Understanding and Improving Layer Normalization》
Hi, I looked all over the git, but I couldn't find the code for the normalization?
Can you help me out here?
Thanks.
I follow your paper and try to train from script in Paper, but Bleu Score Just 26.0. Please help me reproduce that case! Thank you
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.