[opengm] 101/386: fixed: resize count_ and isCached_ vector for EditableDataset

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:35:11 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 5dd8870721e962221192dd2f7baedfebe01568b5
Author: Steffen-Wolf <Steffen.Wolf at stud.uni-heidelberg.de>
Date:   Wed Dec 17 14:52:17 2014 +0100

    fixed: resize count_ and isCached_ vector for EditableDataset
---
 include/opengm/learning/dataset/editabledataset.hxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/opengm/learning/dataset/editabledataset.hxx b/include/opengm/learning/dataset/editabledataset.hxx
index affe43f..8a97024 100644
--- a/include/opengm/learning/dataset/editabledataset.hxx
+++ b/include/opengm/learning/dataset/editabledataset.hxx
@@ -65,6 +65,8 @@ namespace opengm {
         this->lossParams_.push_back(p);
         this->gmsWithLoss_.resize(this->gts_.size());
         this->buildModelWithLoss(this->gts_.size()-1);
+        this->count_.push_back(0);
+        this->isCached_.push_back(bool());
         OPENGM_CHECK_OP(this->gms_.size(), ==, this->gts_.size(),"");
         OPENGM_CHECK_OP(this->gms_.size(), ==, this->lossParams_.size(),"");
         OPENGM_CHECK_OP(this->gms_.size(), ==, this->gmsWithLoss_.size(),"");

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