Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Conversation

@lessw2020
Copy link
Contributor

PyTorch main had a refactor for torch export related code, which breaks tracing in IR.py with latest nightlies.
This PR simply updates the import for the _export_to_torch_ir function, in order to enable access again for tracing.

Link to refactor PR for reference:
https://github.com/pytorch/pytorch/pull/114768/files

Tested on bert and bert_cpu_init as quick test.

@lessw2020
Copy link
Contributor Author

lessw2020 commented Dec 28, 2023

the test failure seems to be the inverse of the original problem - the PyTorch build running CI does not have the refactor.

On my machine with latest nightly it passes:
test_pipe_passing

kwen2501 added a commit that referenced this pull request Jan 2, 2024
## Description

This is a copy of #924 with an addition to support both new and old
import paths.

---------

Co-authored-by: lessw2020 <[email protected]>
@lessw2020
Copy link
Contributor Author

same PR with but updated for backwards support with this PR: #926
Thus closing here.

@lessw2020 lessw2020 closed this Jan 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants