Custom executor
See original GitHub issueAccording to https://www.tensorflow.org/tfx/guide/examplegen it’s possible to use a custom Executor in this way:
from tfx.components.example_gen.csv_example_gen import executor
from tfx.utils.dsl_utils import external_input
examples = external_input(os.path.join(base_dir, 'data/simple'))
example_gen = FileBasedExampleGen(input_base=examples,
executor_class=executor.Executor)
I’m confused about that, FileBasedExampleGen doesn’t accept executor_class
as a parameter.
Maybe I should use custom_executor_spec
?
I’m also not sure about how to import this class into the pipeline itself. AS far as I know ExampleGen
components lack the module_file
property that Transform
and Trainer
have.
Am I missing smething?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
The Custom executor - GitLab Docs
The Custom executor provides the stages for you to configure some details of the job, prepare and clean up the environment and run...
Read more >A practical guide to GitLab Runner Custom Executor drivers
The Custom Executor works as a bridge between GitLab Runner and a set of binaries or scripts (aka executables) you must develop to...
Read more >GitLab custom executor for Openstack - LinkedIn
According to the documentation to set up a custom executor for gitlab-runner we should provide the following config:
Read more >Local Executors | Nx
This guide shows you how to create, run, and customize executors within your Nx workspace. The examples use the trivial use-case of an...
Read more >What is a Testkube Executor? - GitHub Pages
To use a testing framework that is not on the currently supported framework list for Testkube, you can create your custom executor and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@valeriano-manassero, executor_class was changed to custom_executor_spec in https://github.com/tensorflow/tfx/commit/3069981910a5011ddac86a01ad90a11d637ede5b. We will update the doc to reflect the change soon.
Instead of writing
executor_class=executor.Executor
, you need to writecustom_executor_spec=executor_spec.ExecutorClassSpec(executor.Executor)
.Importing executor class is like importing other python module or class, as long as the python file is under path in sys.path list, you should be able to import it in your pipeline.
@hongye-sun it makes perfectly sense, ty for info. I’m going to create a build to achieve the goal.