Skip to content

Conversation

jumerckx
Copy link
Collaborator

@jumerckx jumerckx commented Aug 6, 2025

fixes #1183

Someone that knows the scatter operation better should probably check that my implementation makes sense.

// We expect the return op to return the update arguments.
size_t numInputs = op.getInputs().size();
for (size_t i = 0; i < returnOp.getNumOperands(); ++i) {
auto returnedVal = dyn_cast<BlockArgument>(returnOp.getOperand(i));
Copy link
Member

Choose a reason for hiding this comment

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

we should generalize this a bit. we want to ideally support cases that aren't just returning a blockargument, but where the result doesn't depend on the other operand. Look at forward/backwards slice for some relevant code

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.

Scatter split

2 participants