You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pull Request resolved: #11534
The update API in method is supposed to be portable, but we can make it more user friendly for the update API in module. Add a bit sugar syntax in module to improve UX. Such that user can update backend option in module like following:
```
Module module(stub_model_path_);
int new_num_threads = 4;
const auto update_result = module.update("forward",
{
{"StubBackend", {{IntKey("NumberOfThreads"), new_num_threads}}
},
);
```
ghstack-source-id: 290073340
@exported-using-ghexport
Differential Revision: [D76242292](https://our.internmc.facebook.com/intern/diff/D76242292/)
0 commit comments