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

add split_ids_op #9372

Closed
jacquesqiao opened this issue Mar 26, 2018 · 0 comments · Fixed by #9370
Closed

add split_ids_op #9372

jacquesqiao opened this issue Mar 26, 2018 · 0 comments · Fixed by #9370

Comments

@jacquesqiao
Copy link
Member

jacquesqiao commented Mar 26, 2018

split_ids_op is used to split a LoDTensor of Ids with shape [batch_size, 1] to multiple LoDTensor by shard_id. shard_id is get by:

// shard_num is the number of pserver now
shard_id = id % shard_num;

split_ids_op is used to compose a prefetch_op

prefetch_op = split_ids_op -> send_receive_op -> concat_op 
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 a pull request may close this issue.

1 participant