tfx.v1.types.standard_artifacts.String

String-typed artifact.

Inherits From: Artifact

String value artifacts are encoded using UTF-8.

value Value stored in the artifact.

Methods

annotate_as

Annotate the value artifact type with a system artifact class.

Example usage:

from tfx.types.system_artifacts import Model ... tfx.Binary( name=component_name, mpm_or_target=..., flags=..., outputs={ 'experiment_id': standard_artifacts.String.annotate_as(Model) })

Args
type_annotation the system artifact class used to annotate the value artifact type. It is a subclass of SystemArtifact. The subclasses are defined in third_party/py/tfx/types/system_artifacts.py.

Returns
A subclass of the method caller class (e.g., standard_artifacts.String, standard_artifacts.Float) with TYPE_ANNOTATION attribute set to be type_annotation; returns the original class iftype_annotation is None.

PROPERTIES None
TYPE_ANNOTATION None
TYPE_NAME 'String'