Skip to content

Commit b5ac106

Browse files
committed
use strict replacements for flat_input
1 parent bc73513 commit b5ac106

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc3/variational/opvi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ def set_size_and_deterministic(self, node, s, d, more_replacements=None):
958958
def to_flat_input(self, node):
959959
"""Replace vars with flattened view stored in self.inputs
960960
"""
961-
return theano.clone(node, self.replacements, strict=False)
961+
return theano.clone(node, self.replacements)
962962

963963
def symbolic_sample_over_posterior(self, node):
964964
node = self.to_flat_input(node)
@@ -1186,7 +1186,7 @@ def to_flat_input(self, node):
11861186
"""
11871187
Replaces vars with flattened view stored in self.inputs
11881188
"""
1189-
return theano.clone(node, self.replacements, strict=False)
1189+
return theano.clone(node, self.replacements)
11901190

11911191
def symbolic_sample_over_posterior(self, node):
11921192
node = self.to_flat_input(node)

0 commit comments

Comments
 (0)