Skip to content

Commit fc5dd37

Browse files
SiegeLordExjburnim
authored andcommitted
Try fixing testSimplexAffine.
Before, the vast majority of the tested coordinates produced zero gradients, causing enormous logspam from Eigen's cholesky decomposition. Reduce the range of the unconstrained coordinates to more finely grid areas with non-zero gradients, reducing/eliminating the logspam and hopefully increasing the accuracy of the integration thus making the test less flaky. PiperOrigin-RevId: 546352366
1 parent 79c2cf5 commit fc5dd37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_probability/python/experimental/tangent_spaces/simplex_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def generate_coords(self):
3636
# Ensure that this represents the positive orthant of the sphere.
3737
logits = []
3838
for _ in range(self.dims):
39-
logits.append(tf.range(-50., 50., self.delta))
39+
logits.append(tf.range(-7., 7., self.delta))
4040
return tf.reshape(
4141
tf.stack(tf.meshgrid(*logits), axis=-1), [-1, self.dims])
4242

0 commit comments

Comments
 (0)