Testing Utiltites¶
- class ActualExpected(actual, expected)[source]¶
Bases:
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.