Skip to content

Commit

Permalink
Merge pull request #819 from null-a/remove-pointless-assert
Browse files Browse the repository at this point in the history
Remove unhelpful assertion.
  • Loading branch information
stuhlmueller committed Apr 14, 2017
2 parents c668577 + 86e7558 commit 5271471
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/inference/elbo.ad.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ module.exports = function(env) {
if (node instanceof SampleNode && node.reparam) {
return acc + node.multiplier * (node.logq - node.logp);
} else if (node instanceof SampleNode) {
assert.ok(!node.param);
var weight = naiveLR ? rootNode.weight : node.weight;
assert.ok(_.isNumber(weight));
var b = this.computeBaseline(node.address, weight);
Expand Down

0 comments on commit 5271471

Please sign in to comment.