Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcin Junczys-Dowmunt <marcinjd@microsoft.com>2021-04-20 18:50:53 +0300
committerMarcin Junczys-Dowmunt <marcinjd@microsoft.com>2021-04-20 18:50:53 +0300
commit3e51ff387232f1096e9560980f0115ac734224f5 (patch)
tree7f6e97f309119c801a42803082e164822a5e2d64 /src
parent8a53b761d5bc922e4ab058a4487ad362d2edefaf (diff)
fix depth-scaling in FFN
Diffstat (limited to 'src')
-rw-r--r--src/layers/generic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layers/generic.h b/src/layers/generic.h
index 2746bc85..8f390bd7 100644
--- a/src/layers/generic.h
+++ b/src/layers/generic.h
@@ -192,7 +192,7 @@ static inline Expr denseInline(Expr x,
float dropProb = 0.0f) {
auto graph = x->graph();
- auto W = graph->param(prefix + "_W" + suffix, {x->shape()[-1], outDim}, inits::glorotUniform());
+ auto W = graph->param(prefix + "_W" + suffix, {x->shape()[-1], outDim}, initFn);
auto b = graph->param(prefix + "_b" + suffix, {1, outDim}, inits::zeros());
if(actName == "relu") {