Skip to content
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

[fx] refactor tracer to trace complete graph #1342

Conversation

YuliangLiu0306
Copy link
Contributor

Previously, when we call ColoProxy.shape, a torch.Size instance will be returned, instead of another ColoProxy as expected. It may leads to the tracing process temporarily stop until the forward function uses other ColoProxys.
To solve this issue, in this PR, we will create a new ColoProxy for getattr function, then tracing process could get complete graph.

YuliangLiu0306 and others added 30 commits April 13, 2022 17:30
@FrankLeeeee
Copy link
Contributor

test_transform_mlp_pass.py has been deleted, resolve the conflict.

@YuliangLiu0306
Copy link
Contributor Author

image

@FrankLeeeee FrankLeeeee merged commit 942c8cd into hpcaitech:main Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants