tfx.types.artifact_utils.get_single_instance

View source on GitHub

Get a single instance of Artifact from a list of length one.

tfx.types.artifact_utils.get_single_instance(artifact_list)

Args:

  • artifact_list: A list of Artifact objects whose length must be one.

Returns:

The single Artifact object in artifact_list.

Raises:

  • ValueError: If length of artifact_list is not one.