fix counting bp calculation of joint distribution
This commit is contained in:
parent
701911ef09
commit
10b15f606a
@ -81,7 +81,9 @@ CountingBp::solveQuery (VarIds queryVids)
|
|||||||
for (size_t i = 0; i < queryVids.size(); i++) {
|
for (size_t i = 0; i < queryVids.size(); i++) {
|
||||||
reprArgs.push_back (getRepresentative (queryVids[i]));
|
reprArgs.push_back (getRepresentative (queryVids[i]));
|
||||||
}
|
}
|
||||||
res = solver_->getFactorJoint (facNodes[idx], reprArgs);
|
FacNode* reprFac = getRepresentative (facNodes[idx]);
|
||||||
|
assert (reprFac != 0);
|
||||||
|
res = solver_->getFactorJoint (reprFac, reprArgs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
Reference in New Issue
Block a user