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 silu and mul grad #502

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add silu and mul grad #502

wants to merge 1 commit into from

Conversation

MARD1NO
Copy link
Collaborator

@MARD1NO MARD1NO commented Mar 18, 2025

PR Category

Type of Change

Description

Issue

Progress

  • Change is properly reviewed (1 reviewer required, 2 recommended).
  • Change is responded to an issue.
  • Change is fully covered by a UT.

Performance

out_grad = torch.randn_like(res_out)
ref_grad = to_reference(out_grad, True)

(ref_inp1_grad, ref_inp2_grad) = torch.autograd.grad(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I recommend splitting out the backward test, so that the input data received by gems function could be the same as the reference function

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