Skip to content

Commit ba1254e

Browse files
authored
Update 02-fused-softmax.py
1 parent 4212e80 commit ba1254e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tutorials/02-fused-softmax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def softmax_kernel(output_ptr, input_ptr, input_row_stride, output_row_stride, n
126126
max_num_resident_warps = NUM_SM * warps_per_sm
127127
kernels = {}
128128
# Possible SLM allocation sizes in kB
129-
tg_slm_sizes = [2**i for i in [0, 1, 2, 4, 8, 16, 24, 32, 48, 64, 96, 128]] # TODO: Get from properties
129+
tg_slm_sizes = [i * 2**10 for i in [0, 1, 2, 4, 8, 16, 24, 32, 48, 64, 96, 128]] # TODO: Get from properties
130130

131131

132132
def softmax(x):

0 commit comments

Comments
 (0)