Skip to content

Commit 25732f0

Browse files
authored
[TUTORIALS] fix softmax tutorial (#5532)
1 parent c409d8a commit 25732f0

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

python/tutorials/02-fused-softmax.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,7 @@ def softmax(x):
170170
num_programs = min(num_programs, n_rows)
171171

172172
# Create a number of persistent programs.
173-
kernel[(num_programs, 1, 1)](
174-
y,
175-
x,
176-
x.stride(0),
177-
y.stride(0),
178-
n_rows,
179-
n_cols,
180-
)
173+
kernel[(num_programs, 1, 1)](y, x, x.stride(0), y.stride(0), n_rows, n_cols, BLOCK_SIZE, num_stages)
181174
return y
182175

183176

0 commit comments

Comments
 (0)