File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
fms_mo/custom_ext_kernels Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ def matmul_kernel(
184184 if chunk_trun_bits > 0 :
185185 accumulator_inner = round_and_trun (accumulator_inner , round_bit , trun_mask )
186186 if clamp_acc_to_dl16 :
187- accumulator = fp32_clamp_to_dl16 (accumulator )
187+ accumulator_inner = fp32_clamp_to_dl16 (accumulator_inner )
188188 ## ---------------------------------------------------------
189189 if truncate_then_accumulate :
190190 accumulator += accumulator_inner
@@ -411,7 +411,7 @@ def matmul_kernel_DABC(
411411 if chunk_trun_bits > 0 :
412412 accumulator_inner = round_and_trun (accumulator_inner , round_bit , trun_mask )
413413 if clamp_acc_to_dl16 :
414- accumulator = fp32_clamp_to_dl16 (accumulator )
414+ accumulator_inner = fp32_clamp_to_dl16 (accumulator_inner )
415415 ## ---------------------------------------------------------
416416 if truncate_then_accumulate :
417417 accumulator += accumulator_inner
You can’t perform that action at this time.
0 commit comments