Join the SIG TFX-Addons community and help make TFX even better!

tfx.components.trainer.rewriting.rewriter_factory.create_rewriter

Instantiates a new rewriter with the given type and constructor arguments.

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.

The instantiated rewriter.

ValueError If unable to instantiate the rewriter.