Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/developer_mode/gelu_mul_developer.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ def main(A: T.Tensor((M, N), dtype), B: T.Tensor((M, N // 2), dtype)):
a1, a2 = torch.split(a, N // 2, dim=1)
ref_b = gelu(a1) * a2
torch.testing.assert_close(b.cpu(), ref_b.cpu(), rtol=1e-2, atol=1e-2)
print("Test passed!")
print("Test passed")

print("Kernel Output Match!")
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def main(
@staticmethod
@tilelang.jit(out_idx=[-1], pass_configs=pass_configs)
def binary_op_kernel_int(M, N, block_M, block_N, op_func, dtype="int16"):
"""Generic binary operation kernel for int types"""
"""Generic binary operation kernel for int type"""
m_num = M // block_M
n_num = N // block_N
VEC_NUM = 2
Expand Down
Loading