[opengm] 135/386: sumOfExperts serialization still to be debugged

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:36:13 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 94af38913565ef5aacd1a0d466667adc2862942b
Author: mschiegg <martin.schiegg at iwr.uni-heidelberg.de>
Date:   Thu Dec 18 17:25:51 2014 +0100

    sumOfExperts serialization still to be debugged
---
 include/opengm/functions/learnable/sum_of_experts.hxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/opengm/functions/learnable/sum_of_experts.hxx b/include/opengm/functions/learnable/sum_of_experts.hxx
index 385db43..1cd9bcf 100644
--- a/include/opengm/functions/learnable/sum_of_experts.hxx
+++ b/include/opengm/functions/learnable/sum_of_experts.hxx
@@ -207,6 +207,8 @@ FunctionSerialization<opengm::functions::learnable::SumOfExperts<T, I, L> >::ser
       ++indexOutIterator; 
    }
 
+   OPENGM_ASSERT_OP(src.weightIDs_.size(), ==, src.feat_.size());
+
    // save features  
    for(size_t i=0; i<src.weightIDs_.size();++i){
       for(size_t j=0; j<src.feat_[i].size();++j){

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