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

github.com/moses-smt/nplm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Sennrich <rico.sennrich@gmx.ch>2014-11-17 13:47:29 +0300
committerRico Sennrich <rico.sennrich@gmx.ch>2014-11-17 13:51:14 +0300
commitaccf80c4d91aac37eabc0dd53809bc15fd260a24 (patch)
tree4f163e18829675777dea4cc5b3cf406efc8e5be5
parent77ef2912c2a900755901e06d00cb4d6a2e179bf8 (diff)
expose premultiplication
-rw-r--r--src/neuralNetwork.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/neuralNetwork.h b/src/neuralNetwork.h
index 021a425..9df40cd 100644
--- a/src/neuralNetwork.h
+++ b/src/neuralNetwork.h
@@ -181,6 +181,14 @@ public:
return static_cast<double>(cache_hits)/cache_lookups;
}
+ void premultiply()
+ {
+ if (!m->premultiplied)
+ {
+ m->premultiply();
+ }
+ }
+
};
} // namespace nplm