-
Notifications
You must be signed in to change notification settings - Fork 498
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
Allow MpDeviceLoader to shard dictionaries of tensor #8202
Conversation
@ManfeiBai: I will cherry pick this into 2.5 release. |
I will take a look today |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still prefer to separate the error handling from loading. iPutting an exception into the data_queue makes logic a bit messy IMO. I will approve to unblock, I can do a follow up here.
The test failure is not related to this PR. Merging. |
Reland #7912
The new code is only used when input_sharding is a dictionary of ShardingSpec. So, it should be backward compatible. Before this PR, it is expected to be a ShardingSpec