tensorflow_probability/python/distributions/beta.py
def _maybe_assert_valid_sample(self, x):
    """Checks the validity of a sample."""
    if not self.validate_args:
      return x
    return distribution_util.with_dependencies([
        assert_util.assert_positive(x, message="sample must be positive"),
        assert_util.assert_less(x, 1., message="sample must be less than `1`."),
    ], x)
def _maybe_assert_valid_sample(self, x):
    """Checks the validity of a sample."""
    if not self.validate_args:
      return x
    return distribution_util.with_dependencies([
        assert_util.assert_positive(x, message="sample must be positive"),
        assert_util.assert_less(x, 1., message="sample must be less than `1`."),
    ], x)
def _maybe_assert_valid_sample ( self , x ) : if not self . validate_args : return x return distribution_util . with_dependencies ( [ assert_util . assert_positive ( x , message = "sample must be positive" ) , assert_util . assert_less ( x , 1. , message = "sample must be less than `1`." ) , ] , x )
Checks the validity of a sample.
Checks the validity of a sample .