Skip to content

Refactor(linear): split LinearBackward kernel into 3 independent kernels#142

Open
chen2021673 wants to merge 2 commits intomasterfrom
split_linear_backward
Open

Refactor(linear): split LinearBackward kernel into 3 independent kernels#142
chen2021673 wants to merge 2 commits intomasterfrom
split_linear_backward

Conversation

@chen2021673
Copy link
Copy Markdown
Contributor

Move grad_flags logic from kernel to autograd layer. The monolithic LinearBackward kernel is replaced by LinearBackwardInput, LinearBackwardWeight, and LinearBackwardBias — each a pure compute operation with no autograd-related parameters.

Move grad_flags logic from kernel to autograd layer. The
monolithic LinearBackward kernel is replaced by LinearBackwardInput,
LinearBackwardWeight, and LinearBackwardBias — each a pure compute
operation with no autograd-related parameters.
@chen2021673 chen2021673 force-pushed the split_linear_backward branch from 8f64209 to 66e45dc Compare April 10, 2026 08:18
Move needs_input_grad logic from kernel to autograd layer. The monolithic MatmulBackward kernel
is replaced by MatmulBackwardInput1 and MatmulBackwardInput2.
@chen2021673 chen2021673 force-pushed the split_linear_backward branch from 66e45dc to be6eed3 Compare April 10, 2026 08:23
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.

1 participant