|View source on GitHub|
TFX Pusher executor to push the new TF model to a filesystem target.
tfx.components.pusher.executor.Executor( context: Optional[
tfx.dsl.components.base.base_executor.BaseExecutor.Context] = None )
The Pusher component is used to deploy a validated model to a filesystem
target or serving environment using tf.serving. Pusher depends on the outputs
of ModelValidator to determine if a model is ready to push. A model is
considered to be safe to push only if ModelValidator has marked it as BLESSED.
A push action delivers the model exports produced by Trainer to the
destination defined in the
push_destination of the component config.
To include Pusher in a TFX pipeline, configure your pipeline similar to https://github.com/tensorflow/tfx/blob/master/tfx/examples/chicago_taxi_pipeline/taxi_pipeline_simple.py#L104
CheckBlessing( input_dict: Dict[Text, List[types.Artifact]] ) -> bool
Check that model is blessed by upstream validators.
Input dict from input key to a list of artifacts:
|True if the model is blessed by validator.|
Do( input_dict: Dict[Text, List[types.Artifact]], output_dict: Dict[Text, List[types.Artifact]], exec_properties: Dict[Text, Any] ) -> None
Push model to target directory if blessed.
Input dict from input key to a list of artifacts, including:
Output dict from key to a list of artifacts, including:
A dict of execution properties, including: