Skip to content

Commit 51108d4

Browse files
committed
fix typo
1 parent 2f226a3 commit 51108d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymc3/variational/approximations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def randidx(self, size=None):
289289
high=pm.floatX(self.histogram.shape[0]) - pm.floatX(1e-16))
290290
.astype('int32'))
291291

292-
def _new_initial(self, size, deterministic):
292+
def _new_initial(self, size, deterministic, more_replacements=None):
293293
theano_condition_is_here = isinstance(deterministic, tt.Variable)
294294
if theano_condition_is_here:
295295
return tt.switch(

pymc3/variational/opvi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ def params(self):
884884
else:
885885
return collect_shared_to_list(self.shared_params)
886886

887-
def _new_initial_shape(self, size, dim, more_replacements):
887+
def _new_initial_shape(self, size, dim, more_replacements=None):
888888
if self.batched:
889889
bdim = tt.as_tensor(self.bdim)
890890
bdim = theano.clone(bdim, more_replacements)

0 commit comments

Comments
 (0)