[opengm] 65/386: add missing resize

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:35:05 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 636ef8c0d1f2ed0835b1f51e27d04cb805955fb2
Author: Joerg Kappes <jkappes at goedel.(none)>
Date:   Tue Dec 16 13:57:40 2014 +0100

    add missing resize
---
 include/opengm/learning/dataset/testdatasets.hxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/opengm/learning/dataset/testdatasets.hxx b/include/opengm/learning/dataset/testdatasets.hxx
index 65e6831..6ae24d5 100644
--- a/include/opengm/learning/dataset/testdatasets.hxx
+++ b/include/opengm/learning/dataset/testdatasets.hxx
@@ -46,6 +46,7 @@ namespace opengm {
       template<class GM, class LOSS>
       TestDataset1<GM,LOSS>::TestDataset1(size_t numModels)
       { 
+         this->count_.resize(numModels,0);
          this->weights_ = Weights(1);
          LabelType numberOfLabels = 2;
          this->gt_.resize(numModels,std::vector<size_t>(64*64,0));
@@ -100,6 +101,7 @@ namespace opengm {
       template<class GM, class LOSS>
       TestDataset2<GM,LOSS>::TestDataset2(size_t numModels)
       { 
+         this->count_.resize(numModels,0);
          this->weights_ = Weights(3);
          LabelType numberOfLabels = 2;
          this->gt_.resize(numModels,std::vector<size_t>(64*64,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