Fix a bug in export api that prevents setting specific kwargs for different backends
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/236 When exporting the model to different backend engines, users may set the `model_export_kwargs` for different backends. The torchscript backend needs a placeholder `**export_kwargs` to allow the kwargs for other backends. Frankly speaking, this mechanism of passing the same set of kwargs to different backends is confusing. Better to be refactored to the factory pattern with isolated kwargs. Reviewed By: HarounH, wat3rBro Differential Revision: D36140771 fbshipit-source-id: f327559c1d063c9ce914a9afe2c1acf77c2aa287
Showing
Please register or sign in to comment