pytorch
a7b62abe - [PyTorch Edge] bytecode version bump to v5 and enable share constant table (#57888)

Commit
3 years ago
[PyTorch Edge] bytecode version bump to v5 and enable share constant table (#57888) Summary: As title, main change: 1. Enable share constant table and reduce model size up to 50% 2. Bump bytecode version from v4 to v5. 3. Add the unittest back. (It was partially removed because `script_module_v5.ptl` bytecode version is v5. When current runtime is v4 and try to load a v5 model, it will raise an error because version is not within the range. Pull Request resolved: https://github.com/pytorch/pytorch/pull/57888 As title ghstack-source-id: 129255867 Test Plan: CI ``` buck test papaya/toolkit/frontend/torch/... buck test mode/opt papaya/integration/service/test/smartkeyboard:smartkeyboard_system_test ``` Reviewed By: raziel, iseeyuan Differential Revision: D28309381 fbshipit-source-id: 6f5cf4296eaadde913d55f27d5bfb9d1dea2fbaf
Author
Parents
Loading