![]() |
Get a single instance of Artifact from a list of length one.
tfx.types.artifact_utils.get_single_instance(
artifact_list: List[tfx.types.Artifact
]
) -> tfx.types.Artifact
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. |