[opengm] 206/386: fixed stupid bugs

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:37:44 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 e116f0adb7ff6a9b4d6299ae16e0fbed8c180445
Author: DerThorsten <thorsten.beier at iwr.uni-heidelberg.de>
Date:   Wed Jan 7 10:57:24 2015 +0100

    fixed stupid bugs
---
 include/opengm/learning/gradient-accumulator.hxx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/opengm/learning/gradient-accumulator.hxx b/include/opengm/learning/gradient-accumulator.hxx
index 775bf20..e39b9f4 100644
--- a/include/opengm/learning/gradient-accumulator.hxx
+++ b/include/opengm/learning/gradient-accumulator.hxx
@@ -111,7 +111,7 @@ struct FeatureAccumulator{
     void operator()(Iter begin, Iter end, const F & f){
 
         typedef opengm::SubsetAccessor<Iter, LABEL_ITER> Accessor;
-        typedef opengm::AccessorIterator<Accessor, true> Iter;
+        typedef opengm::AccessorIterator<Accessor, true> AccessorIter;
 
 
         // get the number of weights_
@@ -129,15 +129,15 @@ struct FeatureAccumulator{
 
                 if(add_){
                     // for gt label
-                    accWeights_[gwi] += f.weightGradient(wi, Iter(accessorGt, 0));
+                    accWeights_[gwi] += f.weightGradient(wi, AccessorIter(accessorGt, 0));
                     // for test label
-                    accWeights_[gwi] -= f.weightGradient(wi, Iter(accessorMap, 0));
+                    accWeights_[gwi] -= f.weightGradient(wi, AccessorIter(accessorMap, 0));
                 }
                 else{
                     // for gt label
-                    accWeights_[gwi] -= f.weightGradient(wi, Iter(accessorGt, 0));
+                    accWeights_[gwi] -= f.weightGradient(wi, AccessorIter(accessorGt, 0));
                     // for test label
-                    accWeights_[gwi] += f.weightGradient(wi, Iter(accessorMap, 0));
+                    accWeights_[gwi] += f.weightGradient(wi, AccessorIter(accessorMap, 0));
                 }
             }
         }

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