String-typed artifact.
Inherits From: Artifact
tfx.v1.types.standard_artifacts.String(
*args, **kwargs
)
String value artifacts are encoded using UTF-8.
Attributes | |
---|---|
value
|
Value stored in the artifact. |
Methods
annotate_as
@classmethod
annotate_as( type_annotation: Optional[Type[SystemArtifact]] = None )
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.
|
Class Variables | |
---|---|
PROPERTIES |
None
|
TYPE_ANNOTATION |
None
|
TYPE_NAME |
'String'
|