Skip to content

Commit

Permalink
Reduce the batch size in MutualInformationTest to fix the OOMs on Tra…
Browse files Browse the repository at this point in the history
…vis.

Presumably it also makes it a tiny bit faster. I tested this with 100 different seeds, and it appeared to not be flaky so the smaller batch doesn't appear to exceed the existing test tolerances.

PiperOrigin-RevId: 294506518
  • Loading branch information
SiegeLordEx authored and tensorflower-gardener committed Feb 11, 2020
1 parent 07ae476 commit 5fca5e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tensorflow_probability/python/vi/mutual_information_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def setUp(self):
scale=2.0,
size=[13, 17])

batch_size, rho, dim = 10000, 0.8, 2
batch_size = 1000
rho = 0.8
dim = 2
x, eps = tf.split(value=tf.random.normal(shape=(2*batch_size, dim),
seed=self.seed),
num_or_size_splits=2, axis=0)
Expand Down

0 comments on commit 5fca5e0

Please sign in to comment.