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
Summary:
It's been on the to-do list for a while to clean that up.
It's only used in `export_program` to properly put the model in eval mode. Now that we only allow `nn.Module`, there are only two cases: `nn.Module`, which will have `eval()`, and `GraphModule`, which can use `torch.ao.quantization.move_exported_model_to_eval`, which we already called before with the `pt2_quant` flag.
Now that the flag is not needed, remove it everywhere!
We also promote the `quantize_and_export_program` function to `__init__.py` as a compiler API, because it can be quite useful.
Differential Revision: D57491621
0 commit comments