Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tfx.types.artifact_utils.deserialize_artifact

View source on GitHub

Reconstruct Artifact object from MLMD proto descriptors.

tfx.types.artifact_utils.deserialize_artifact(
    artifact_type, artifact=None
)

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.