Testing Utiltites¶
-
class
ActualExpected
[source]¶ Bases:
funsor.testing.LazyComparison
Lazy string formatter for test assertions.
-
random_tensor
(inputs, output=Real)[source]¶ Creates a random
funsor.tensor.Tensor
with given inputs and output.
-
random_gaussian
(inputs)[source]¶ Creates a random
funsor.gaussian.Gaussian
with given inputs.