Skip to content

Conversation

@wonjoo-wj
Copy link
Collaborator

@wonjoo-wj wonjoo-wj commented Feb 28, 2022

Migrates existing torch_xla::ir::OpKind to torch::lazy::OpKind, which is required to migrate Node, Value, and Output classes. This PR only does simple replacement (no inheritance, logic change, etc), since the existing torch_xla::ir::OpKind and the upstream torch:lazy::OpKind are the same. This PR replaces all the calls and initializations to torch::lazy::OpKind.

Initially was part of #3385, separated into the new PR to make the original PR bit smaller and easier to review.

@wonjoo-wj wonjoo-wj self-assigned this Feb 28, 2022
@wonjoo-wj wonjoo-wj marked this pull request as ready for review February 28, 2022 09:06
@JackCaoG
Copy link
Collaborator

@wonjoolee95 Could you add a more detail description? Like which class you are migrating to, what's the difference between existing class and upstream etc

@wonjoo-wj
Copy link
Collaborator Author

wonjoo-wj commented Feb 28, 2022

@wonjoolee95 Could you add a more detail description? Like which class you are migrating to, what's the difference between existing class and upstream etc

@JackCaoG Sure thing, meant to update it earlier this morning.

This is more of an attempt to make the original PR #3385 smaller. Added in some info to the PR summary on top.

@wonjoo-wj wonjoo-wj requested a review from JackCaoG February 28, 2022 18:34
Copy link
Collaborator

@JackCaoG JackCaoG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Could you fix the conflict?

@wonjoo-wj
Copy link
Collaborator Author

Fixed some merge conflicts. Will merge as CI tests pass.

@wonjoo-wj wonjoo-wj force-pushed the lazy-tensor-opkind branch from 4df8777 to cdd2631 Compare March 2, 2022 08:00
@JackCaoG JackCaoG merged commit bd15636 into master Mar 2, 2022
@JackCaoG JackCaoG deleted the lazy-tensor-opkind branch March 2, 2022 21:54
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.

3 participants