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

Channel Broadcast Examples #688

Merged
merged 14 commits into from
Aug 13, 2024
Merged

Channel Broadcast Examples #688

merged 14 commits into from
Aug 13, 2024

Conversation

hunhoffe
Copy link
Collaborator

@hunhoffe hunhoffe commented Jul 30, 2024

This is part of the effort to write channel examples (#648).

In both of these examples, I attempt to broadcast an input a to 3 workers. In single_herd, there is a single herd of size=[1, 3] whereas in multi_herd there are 3 herds each of size=[1, 1]. The workers then add a unique value to each element in the input image and output the new image to a unique per-worker output channel. Both of these examples now work!

To make this work cleanly, I created a Channel class to wrap ChannelOp and set the broadcast_size attribute.

This was referenced Jul 30, 2024
@hunhoffe hunhoffe changed the title [WIP] Channel broadcast examples Channel Broadcast Examples Jul 30, 2024
@hunhoffe hunhoffe marked this pull request as ready for review July 31, 2024 15:16
@hunhoffe hunhoffe requested a review from jgmelber as a code owner July 31, 2024 15:16
@erwei-xilinx erwei-xilinx merged commit 7985d04 into main Aug 13, 2024
11 checks passed
@erwei-xilinx erwei-xilinx deleted the channel-broadcast-examples branch August 13, 2024 21:36
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.

2 participants