Skip to content

Commit

Permalink
Bump tolerances of two tests to fix the TFP build.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 407494411
  • Loading branch information
emilyfertig authored and tensorflower-gardener committed Nov 4, 2021
1 parent b6e84e4 commit 57ccb0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorflow_probability/python/layers/weight_norm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ def testConv2DInitializedCorrectly(self, transpose):
self.conv_random_input, self.num_conv_filters, transpose=transpose)

self.assertAllClose(true_init_g, self.evaluate(norm_layer.g))
self.assertAllClose(true_init_bias, self.evaluate(norm_layer.layer.bias))
self.assertAllClose(
true_init_bias, self.evaluate(norm_layer.layer.bias), rtol=5e-6)

def testCheckpoint(self):
model = self._define_model('sequential', self.data_dim, self.num_hidden)
Expand Down

0 comments on commit 57ccb0f

Please sign in to comment.