Definition for TFX Importer.
Inherits From: BaseNode
tfx.v1.dsl.Importer(
source_uri: str,
artifact_type: Type[tfx.v1.dsl.Artifact
],
reimport: Optional[bool] = False,
properties: Optional[Dict[str, Union[str, int]]] = None,
custom_properties: Optional[Dict[str, Union[str, int]]] = None,
output_key: Optional[str] = None
)
Used in the notebooks
Used in the tutorials |
---|
The Importer is a special TFX node which registers an external resource into MLMD so that downstream nodes can use the registered artifact as an input.
Here is an example to use the Importer:
importer = Importer(
source_uri='uri/to/schema',
artifact_type=standard_artifacts.Schema,
reimport=False).with_id('import_schema')
schema_gen = SchemaGen(
fixed_schema=importer.outputs['result'],
examples=...)
Attributes | |
---|---|
outputs
|
Output Channel dict that contains imported artifacts. |
Methods
with_node_execution_options
with_node_execution_options(
node_execution_options: utils.NodeExecutionOptions
) -> typing_extensions.Self