validate_int_tuple_arg

tfsnippet.utils.validate_int_tuple_arg(arg_name, arg_value, nullable=False)

Validate an integer or a tuple of integers, as a tuple of integers.

Parameters:
  • arg_name (str) – Name of the argument.
  • arg_value (int or Iterable[int]) – An integer, or an iterable collection of integers, to be casted into tuples of integers.
  • nullable (bool) – Whether or not None value is accepted?
Returns:

The tuple of integers.

Return type:

tuple[int]