SIGN IN SIGN UP

Cleanup export_model API calls (#5882)

Summary:
Pull Request resolved: https://github.com/pytorch/executorch/pull/5882

Lots of things are redundant and a few need to move to utils. Subsequent changes will split the export function and separate the run part.

Main changes:
- call `fuse_pt2` after `convert_pt2` instead of `quantize_pt2`, and avoid calling `convert_pt2` twice
- move `print_ops_info` into `export_to_cadence`
- remove the need to call `export_to_edge` in `export_model`
- move the serialization utils to `utils.py`

Reviewed By: zonglinpeng

Differential Revision: D63795843

fbshipit-source-id: 7eb482b0daccf64d3f1ca73ffb5e5148584a6678
M
Matthias Cremon committed
8fc3e2061f581b8b29e2e30201062edd013dc675
Parent: 84f5a56
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 10/7/2024, 12:59:15 AM