tfx.components.util.value_utils.GetSoleValue

View source on GitHub

Helper method for retrieving a sole labeled input.

inputs Dict from label to a value list.
label Label of the value to retrieve.
strict If true, exact one value should exist for label.

A sole labeled value.

ValueError If there is no/multiple input associated with the label.