[opengm] 94/386: bugfix: iterator was not dereferenced in sum_of_experts

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:35:10 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository opengm.

commit 3185fb7d1e2972f821f574462eef99f2f2c31aaf
Author: Jan Funke <funke at ini.ch>
Date:   Wed Dec 17 14:34:31 2014 +0100

    bugfix: iterator was not dereferenced in sum_of_experts
---
 include/opengm/functions/learnable/sum_of_experts.hxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/opengm/functions/learnable/sum_of_experts.hxx b/include/opengm/functions/learnable/sum_of_experts.hxx
index 5c7d778..ffe676f 100644
--- a/include/opengm/functions/learnable/sum_of_experts.hxx
+++ b/include/opengm/functions/learnable/sum_of_experts.hxx
@@ -98,7 +98,7 @@ SumOfExperts<T, I, L>::weightGradient
    ITERATOR begin
 ) const {
   OPENGM_ASSERT(weightNumber< numberOfWeights());
-  return feat_[weightNumber](begin);
+  return feat_[weightNumber](*begin);
 }
 
 template <class T, class I, class L>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opengm.git



More information about the debian-science-commits mailing list