![]() |
A specification of executor class.
Inherits From: ExecutorSpec
tfx.dsl.components.base.executor_spec.ExecutorClassSpec(
executor_class: Type[tfx.dsl.components.base.base_executor.BaseExecutor
]
)
Attributes | |
---|---|
executor_class
|
a subclass of base_executor.BaseExecutor used to execute this component (required). |
extra_flags
|
extra flags to be set in the Python base executor. |
class_path
|
Fully qualified class name for the executor class.
|
Methods
add_extra_flags
add_extra_flags(
extra_flags: Iterable[str]
) -> None
encode
encode(
component_spec: Optional[tfx.types.ComponentSpec
] = None
) -> message.Message
Encodes ExecutorSpec into an IR proto for compiling.
This method will be used by DSL compiler to generate the corresponding IR.
Args | |
---|---|
component_spec
|
Optional. The ComponentSpec to help with the encoding. |
Returns | |
---|---|
An executor spec proto. |
from_json_dict
@classmethod
from_json_dict( dict_data: Dict[Text, Any] ) -> Any
Convert from dictionary data to an object.
to_json_dict
to_json_dict() -> Dict[Text, Any]
Convert from an object to a JSON serializable dictionary.