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
Deepcopy model to another device before export to avoid OOM (#118710)
Summary:
Prior to onnx export, the model is deepcopied to avoid modifications that may affect later performance profiling. However this increases the memory requirement on the device.
This PR modifies the script to deepcopy and export the model on another device when possible.
X-link: pytorch/pytorch#118710
Approved by: https://github.com/thiagocrepaldi
Reviewed By: clee2000
Differential Revision: D53296686
fbshipit-source-id: e764fcf3c4f15f4f8793623571a09fd1b4263898
0 commit comments