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

[autoparallel] use pytree map style to process data #1989

Merged

Conversation

YuliangLiu0306
Copy link
Contributor

What is the problem

There are a lot of unreasonable assumptions in previous system, such as op_data.data is type of torch.Tensor, or no nested tuple or list structure like 'Tuple[Tuple[torch.Tensor]]'. These assumption makes our system fragile during running the real world model.

What does this PR do

In this PR, I use the pytree map style operation to process related data to make our system much more robust.

@YuliangLiu0306 YuliangLiu0306 merged commit 1558911 into hpcaitech:main Nov 21, 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