![]() |
Creates the contexts given specification.
tfx.orchestration.portable.mlmd.context_lib.prepare_contexts(
metadata_handler: tfx.orchestration.metadata.Metadata
,
node_contexts: pipeline_pb2.NodeContexts
) -> List[metadata_store_pb2.Context]
Context types will be registered if not already exist.
Args | |
---|---|
metadata_handler
|
A handler to access MLMD store. |
node_contexts
|
A pipeline_pb2.NodeContext message that instructs registering of the contexts. |
Returns | |
---|---|
A list of metadata_store_pb2.Context messages. |