We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca47198 commit 16b1202Copy full SHA for 16b1202
torch_xla/experimental/pallas_kernels/quantized_matmul_kernel.py
@@ -70,16 +70,16 @@ def matmul_kernel(
70
assert quantize_activation
71
assert q_x_scratch is not None
72
assert x_scale_scratch is not None
73
- quant = out_idx == 0
+ quant = (out_idx == 0)
74
else:
75
assert q_x_scratch is None
76
assert x_scale_scratch is None
77
quant = quantize_activation
78
79
if save_acc:
80
assert acc_scratch is not None
81
- is_first_step = in_idx == 0
82
- is_last_step = in_idx == n_in - 1
+ is_first_step = (in_idx == 0)
+ is_last_step = (in_idx == (n_in - 1))
83
84
assert acc_scratch is None
85
is_first_step = True
0 commit comments