[opengm] 85/386: Remove unnecessary write to labelOffset_ in LUnary constructor

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:35:09 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 563716c6d1163042c8d89cbcaf0cf1ac1c019b16
Author: Carsten Haubold <carstenhaubold at googlemail.com>
Date:   Wed Dec 17 13:26:42 2014 +0100

    Remove unnecessary write to labelOffset_ in LUnary constructor
---
 include/opengm/functions/learnable/lunary.hxx | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/opengm/functions/learnable/lunary.hxx b/include/opengm/functions/learnable/lunary.hxx
index 97674d8..d541236 100644
--- a/include/opengm/functions/learnable/lunary.hxx
+++ b/include/opengm/functions/learnable/lunary.hxx
@@ -109,7 +109,6 @@ numWeights_(0){
     // for this function
     size_t offset = 0 ;
     for(size_t l=0; l<featuresAndIndicesPerLabel.size(); ++l){
-        labelOffset_[l] = offset;
         const size_t nForThisL = featuresAndIndicesPerLabel[l].features.size();
         numWeights_ += nForThisL;
     }

-- 
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