You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Align softmax tutorial benchmark with description
The documentation for the softmax tutorial states that it compares three
implementations: the Triton kernel, torch.softmax, and a naive_softmax
implementation.
However, the accompanying code example only benchmarks the Triton and
Torch versions, omitting the naive implementation. This discrepancy can
cause confusion for users following the tutorial.
This commit updates the benchmark code to include the `native_softmax`
comparison, ensuring the code accurately reflects the tutorial's
description. The changes include:
- Adding 'native_softmax' to the `line_vals` list.
- Adding "Native Softmax" to the `line_names` list.
- Adding the corresponding logic branch to the `benchmark` function.
Here is my code result:
<img width="571" height="432" alt="image"
src="https://github.com/user-attachments/assets/bf6dc821-2ee4-4acc-8002-0cc2188d3497"
/>
0 commit comments