Skip to content

Commit

Permalink
Update test_rms_lightlm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzefeng92 authored Mar 27, 2024
1 parent b0aa03d commit 0517125
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_rms_lightlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,9 @@
1e-6
)

print("Output:", output)
print("Grad Input:", grad_input)
print("Grad Weight:", grad_weight)
print("Grad Bias:", grad_bias)
b = input * torch.rsqrt(input.pow(2).mean(-1, keepdim=True) + 1e-6) * weight
assert torch.allclose(output, b)

0 comments on commit 0517125

Please sign in to comment.