Instantiates a new rewriter with the given type and constructor arguments.
tfx.components.trainer.rewriting.rewriter_factory.create_rewriter(
rewriter_type: Text,
*args,
**kwargs
) -> tfx.components.trainer.rewriting.rewriter.BaseRewriter
Args |
rewriter_type
|
The rewriter subclass to instantiate (can be all lowercase).
|
*args
|
Positional initialization arguments to pass to the rewriter.
|
**kwargs
|
Keyward initialization arguments to pass to the rewriter.
|
Returns |
The instantiated rewriter.
|
Raises |
ValueError
|
If unable to instantiate the rewriter.
|