TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tfx.components.example_gen.utils.generate_output_split_names

View source on GitHub

Return output split name based on input and output config.

tfx.components.example_gen.utils.generate_output_split_names(
    input_config,
    output_config
)

Return output split name if it's specified and input only contains one split, otherwise output split will be same as input.

Args:

  • input_config: example_gen_pb2.Input instance.
  • output_config: example_gen_pb2.Output instance.

Returns:

List of split names.

Raises:

  • RuntimeError: if configs are not valid, including:
    • Missing field.
    • Duplicated split.
    • Output split is specified while input has more than one split.
    • Missing train and eval split.