-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change aot_compile callsites #2207
Conversation
This pull request was exported from Phabricator. Differential Revision: D54808612 |
Summary: X-link: pytorch/pytorch#122225 Replacing `torch._export.aot_compile` callsites with ``` ep = torch.export._export(.., predispatch=True) # Traces the given program into predispatch IR so_path = torch._inductor.aot_compile_ep(ep, ...) # Takes an exported program and compiles it into a .so ``` This allows us to explicitly split up the export step from AOTInductor. We can later modify tests to do `export + serialize + deserialize + inductor` to mimic internal production use cases better. This PR also enables export's predispatch IR most of the the existing use cases. Previously this is using export to torch IR, which is a different graph. This may result in some performance regressions as some of inductor's passes will no longer run -- if so, please let me know. This PR changes the seemingly low-impact files to the new calling convention, and a followup PR will change the high-impact site. Reviewed By: SherlockNoMad Differential Revision: D54808612
f2d7def
to
fc343b4
Compare
Summary: X-link: pytorch/benchmark#2207 Replacing `torch._export.aot_compile` callsites with ``` ep = torch.export._export(.., predispatch=True) # Traces the given program into predispatch IR so_path = torch._inductor.aot_compile_ep(ep, ...) # Takes an exported program and compiles it into a .so ``` This allows us to explicitly split up the export step from AOTInductor. We can later modify tests to do `export + serialize + deserialize + inductor` to mimic internal production use cases better. This PR also enables export's predispatch IR most of the the existing use cases. Previously this is using export to torch IR, which is a different graph. This may result in some performance regressions as some of inductor's passes will no longer run -- if so, please let me know. This PR changes the seemingly low-impact files to the new calling convention, and a followup PR will change the high-impact site. Test Plan: CI Reviewed By: SherlockNoMad Differential Revision: D54808612
This pull request was exported from Phabricator. Differential Revision: D54808612 |
Summary: X-link: pytorch/benchmark#2207 Replacing `torch._export.aot_compile` callsites with ``` ep = torch.export._export(.., predispatch=True) # Traces the given program into predispatch IR so_path = torch._inductor.aot_compile_ep(ep, ...) # Takes an exported program and compiles it into a .so ``` This allows us to explicitly split up the export step from AOTInductor. We can later modify tests to do `export + serialize + deserialize + inductor` to mimic internal production use cases better. This PR also enables export's predispatch IR most of the the existing use cases. Previously this is using export to torch IR, which is a different graph. This may result in some performance regressions as some of inductor's passes will no longer run -- if so, please let me know. This PR changes the seemingly low-impact files to the new calling convention, and a followup PR will change the high-impact site. Test Plan: CI Reviewed By: SherlockNoMad Differential Revision: D54808612
Summary: X-link: pytorch/pytorch#122225 Replacing `torch._export.aot_compile` callsites with ``` ep = torch.export._export(.., predispatch=True) # Traces the given program into predispatch IR so_path = torch._inductor.aot_compile_ep(ep, ...) # Takes an exported program and compiles it into a .so ``` This allows us to explicitly split up the export step from AOTInductor. We can later modify tests to do `export + serialize + deserialize + inductor` to mimic internal production use cases better. This PR also enables export's predispatch IR most of the the existing use cases. Previously this is using export to torch IR, which is a different graph. This may result in some performance regressions as some of inductor's passes will no longer run -- if so, please let me know. This PR changes the seemingly low-impact files to the new calling convention, and a followup PR will change the high-impact site. Reviewed By: SherlockNoMad Differential Revision: D54808612
fc343b4
to
871039e
Compare
This pull request was exported from Phabricator. Differential Revision: D54808612 |
Summary: X-link: pytorch/pytorch#122225 Replacing `torch._export.aot_compile` callsites with ``` ep = torch.export._export(.., predispatch=True) # Traces the given program into predispatch IR so_path = torch._inductor.aot_compile_ep(ep, ...) # Takes an exported program and compiles it into a .so ``` This allows us to explicitly split up the export step from AOTInductor. We can later modify tests to do `export + serialize + deserialize + inductor` to mimic internal production use cases better. This PR also enables export's predispatch IR most of the the existing use cases. Previously this is using export to torch IR, which is a different graph. This may result in some performance regressions as some of inductor's passes will no longer run -- if so, please let me know. This PR changes the seemingly low-impact files to the new calling convention, and a followup PR will change the high-impact site. Reviewed By: SherlockNoMad Differential Revision: D54808612
871039e
to
1c4bab9
Compare
This pull request was exported from Phabricator. Differential Revision: D54808612 |
1c4bab9
to
3e160db
Compare
Summary: X-link: pytorch/pytorch#122225 Replacing `torch._export.aot_compile` callsites with ``` ep = torch.export._export(.., predispatch=True) # Traces the given program into predispatch IR so_path = torch._inductor.aot_compile_ep(ep, ...) # Takes an exported program and compiles it into a .so ``` This allows us to explicitly split up the export step from AOTInductor. We can later modify tests to do `export + serialize + deserialize + inductor` to mimic internal production use cases better. This PR also enables export's predispatch IR most of the the existing use cases. Previously this is using export to torch IR, which is a different graph. This may result in some performance regressions as some of inductor's passes will no longer run -- if so, please let me know. This PR changes the seemingly low-impact files to the new calling convention, and a followup PR will change the high-impact site. Reviewed By: SherlockNoMad Differential Revision: D54808612
This pull request was exported from Phabricator. Differential Revision: D54808612 |
Summary: X-link: pytorch/pytorch#122225 Replacing `torch._export.aot_compile` callsites with ``` ep = torch.export._export(.., predispatch=True) # Traces the given program into predispatch IR so_path = torch._inductor.aot_compile_ep(ep, ...) # Takes an exported program and compiles it into a .so ``` This allows us to explicitly split up the export step from AOTInductor. We can later modify tests to do `export + serialize + deserialize + inductor` to mimic internal production use cases better. This PR also enables export's predispatch IR most of the the existing use cases. Previously this is using export to torch IR, which is a different graph. This may result in some performance regressions as some of inductor's passes will no longer run -- if so, please let me know. This PR changes the seemingly low-impact files to the new calling convention, and a followup PR will change the high-impact site. Reviewed By: SherlockNoMad Differential Revision: D54808612
This pull request was exported from Phabricator. Differential Revision: D54808612 |
Summary: X-link: pytorch/pytorch#122225 Replacing `torch._export.aot_compile` callsites with ``` ep = torch.export._export(.., predispatch=True) # Traces the given program into predispatch IR so_path = torch._inductor.aot_compile_ep(ep, ...) # Takes an exported program and compiles it into a .so ``` This allows us to explicitly split up the export step from AOTInductor. We can later modify tests to do `export + serialize + deserialize + inductor` to mimic internal production use cases better. This PR also enables export's predispatch IR most of the the existing use cases. Previously this is using export to torch IR, which is a different graph. This may result in some performance regressions as some of inductor's passes will no longer run -- if so, please let me know. This PR changes the seemingly low-impact files to the new calling convention, and a followup PR will change the high-impact site. Reviewed By: SherlockNoMad Differential Revision: D54808612
39599b5
to
6752f30
Compare
Summary: X-link: pytorch/benchmark#2207 Replacing `torch._export.aot_compile` callsites with ``` ep = torch.export._export(.., predispatch=True) # Traces the given program into predispatch IR so_path = torch._inductor.aot_compile_ep(ep, ...) # Takes an exported program and compiles it into a .so ``` This allows us to explicitly split up the export step from AOTInductor. We can later modify tests to do `export + serialize + deserialize + inductor` to mimic internal production use cases better. This PR also enables export's predispatch IR most of the the existing use cases. Previously this is using export to torch IR, which is a different graph. This may result in some performance regressions as some of inductor's passes will no longer run -- if so, please let me know. This PR changes the seemingly low-impact files to the new calling convention, and a followup PR will change the high-impact site. Test Plan: CI Reviewed By: SherlockNoMad Differential Revision: D54808612
This pull request was exported from Phabricator. Differential Revision: D54808612 |
6752f30
to
c117a80
Compare
Summary: X-link: pytorch/pytorch#122225 Replacing `torch._export.aot_compile` callsites with ``` ep = torch.export._export(.., predispatch=True) # Traces the given program into predispatch IR so_path = torch._inductor.aot_compile_ep(ep, ...) # Takes an exported program and compiles it into a .so ``` This allows us to explicitly split up the export step from AOTInductor. We can later modify tests to do `export + serialize + deserialize + inductor` to mimic internal production use cases better. This PR also enables export's predispatch IR most of the the existing use cases. Previously this is using export to torch IR, which is a different graph. This may result in some performance regressions as some of inductor's passes will no longer run -- if so, please let me know. This PR changes the seemingly low-impact files to the new calling convention, and a followup PR will change the high-impact site. Reviewed By: SherlockNoMad Differential Revision: D54808612
This pull request was exported from Phabricator. Differential Revision: D54808612 |
Summary: X-link: pytorch/pytorch#122225 Replacing `torch._export.aot_compile` callsites with ``` ep = torch.export._export(.., predispatch=True) # Traces the given program into predispatch IR so_path = torch._inductor.aot_compile_ep(ep, ...) # Takes an exported program and compiles it into a .so ``` This allows us to explicitly split up the export step from AOTInductor. We can later modify tests to do `export + serialize + deserialize + inductor` to mimic internal production use cases better. This PR also enables export's predispatch IR most of the the existing use cases. Previously this is using export to torch IR, which is a different graph. This may result in some performance regressions as some of inductor's passes will no longer run -- if so, please let me know. This PR changes the seemingly low-impact files to the new calling convention, and a followup PR will change the high-impact site. Reviewed By: SherlockNoMad Differential Revision: D54808612
c117a80
to
1b1d20f
Compare
Summary: X-link: pytorch/benchmark#2207 Replacing `torch._export.aot_compile` callsites with ``` ep = torch.export._export(.., predispatch=True) # Traces the given program into predispatch IR so_path = torch._inductor.aot_compile_ep(ep, ...) # Takes an exported program and compiles it into a .so ``` This allows us to explicitly split up the export step from AOTInductor. We can later modify tests to do `export + serialize + deserialize + inductor` to mimic internal production use cases better. This PR also enables export's predispatch IR most of the the existing use cases. Previously this is using export to torch IR, which is a different graph. This may result in some performance regressions as some of inductor's passes will no longer run -- if so, please let me know. This PR changes the seemingly low-impact files to the new calling convention, and a followup PR will change the high-impact site. Test Plan: CI Reviewed By: SherlockNoMad Differential Revision: D54808612
This pull request was exported from Phabricator. Differential Revision: D54808612 |
This pull request has been merged in 756ea35. |
Summary:
X-link: pytorch/pytorch#122225
Replacing
torch._export.aot_compile
callsites withThis allows us to explicitly split up the export step from AOTInductor. We can later modify tests to do
export + serialize + deserialize + inductor
to mimic internal production use cases better.This PR also enables export's predispatch IR most of the the existing use cases. Previously this is using export to torch IR, which is a different graph. This may result in some performance regressions as some of inductor's passes will no longer run -- if so, please let me know.
This PR changes the seemingly low-impact files to the new calling convention, and a followup PR will change the high-impact site.
Reviewed By: SherlockNoMad
Differential Revision: D54808612