pytorch
ae901e37 - [Static Runtime] Enable RemoveListMutation (#63536)

Commit
3 years ago
[Static Runtime] Enable RemoveListMutation (#63536) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/63536 Enable a pass that transforms sequences like this: ``` li = [] li.append(1) li.append(2) ``` into this: ``` li = [1, 2] ``` Initially I implemented this pass myself (D30387213), but I discovered that there is an existing pass that does the same thing. Reviewed By: hlu1 Differential Revision: D30412970 fbshipit-source-id: 0810ef03480878d5039bd800a40f5fd31c2652ec
Author
Mike Iovine
Parents
Loading