diff options
author | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-11-17 13:47:29 +0300 |
---|---|---|
committer | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-11-17 13:51:14 +0300 |
commit | accf80c4d91aac37eabc0dd53809bc15fd260a24 (patch) | |
tree | 4f163e18829675777dea4cc5b3cf406efc8e5be5 | |
parent | 77ef2912c2a900755901e06d00cb4d6a2e179bf8 (diff) |
expose premultiplication
-rw-r--r-- | src/neuralNetwork.h | 8 |
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 |