Skip to content

Commit dc9e0d5

Browse files
committed
improve error message for non-close outputs of inference networks in numerical density test
1 parent b6db493 commit dc9e0d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_networks/test_inference_networks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def f(x):
9898
numerical_output, numerical_jacobian = jacobian(f, random_samples, return_output=True)
9999

100100
# output should be identical, otherwise this test does not work (e.g. for stochastic networks)
101-
assert keras.ops.all(keras.ops.isclose(output, numerical_output))
101+
assert_allclose(output, numerical_output)
102102

103103
log_prob = generative_inference_network.base_distribution.log_prob(output)
104104

0 commit comments

Comments
 (0)