Reconstruct Artifact object from MLMD proto descriptors.
tfx.types.artifact_utils.deserialize_artifact(
artifact_type: metadata_store_pb2.ArtifactType,
artifact: Optional[metadata_store_pb2.Artifact] = None
) -> tfx.types.Artifact
Used in the notebooks
Internal method, no backwards compatibility guarantees.
Args |
artifact_type
|
A metadata_store_pb2.ArtifactType proto object describing the
type of the artifact.
|
artifact
|
A metadata_store_pb2.Artifact proto object describing the contents
of the artifact. If not provided, an Artifact of the desired type with
empty contents is created.
|
Returns |
Artifact subclass object for the given MLMD proto descriptors.
|