parameters: (self, counts)
return_statement: return control_flow_ops.with_dependencies([
          check_ops.assert_non_negative(
              counts, message="counts has negative components."),
          check_ops.assert_less_equal(
              counts, self._n, message="counts are not less than or equal to n."),
          distribution_util.assert_integer_form(
              counts, message="counts have non-integer components.")], counts)
docstring: Check counts for proper shape, values, then return tensor version.
docstring_summary: Check counts for proper shape, values, then return tensor version.
docstring_tokens: Check counts for proper shape values then return tensor version .
function: def _check_counts(self, counts):
      """Check counts for proper shape, values, then return tensor version."""
      counts = ops.convert_to_tensor(counts, name="counts_before_deps")
      if not self.validate_args:
        return counts
      return control_flow_ops.with_dependencies([
          check_ops.assert_non_negative(
              counts, message="counts has negative components."),
          check_ops.assert_less_equal(
              counts, self._n, message="counts are not less than or equal to n."),
          distribution_util.assert_integer_form(
              counts, message="counts have non-integer components.")], counts)
function_tokens: def _check_counts ( self , counts ) : counts = ops . convert_to_tensor ( counts , name = "counts_before_deps" ) if not self . validate_args : return counts return control_flow_ops . with_dependencies ( [ check_ops . assert_non_negative ( counts , message = "counts has negative components." ) , check_ops . assert_less_equal ( counts , self . _n , message = "counts are not less than or equal to n." ) , distribution_util . assert_integer_form ( counts , message = "counts have non-integer components." ) ] , counts )