Skip to content

Commit

Permalink
yapf
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
  • Loading branch information
jopperm committed May 20, 2024
1 parent 7a29cb3 commit 5dcd09d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/tutorials/09-experimental-block-pointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,8 @@ def matmul(a, b, res_dtype):

triton_output = matmul(a, b, res_dtype)
# torch.matmul clamps values to input dtype; IPEX doesn't support int32 matmul
torch_output = torch.matmul(
a.to(device='cpu', dtype=res_dtype),
b.to(device='cpu', dtype=res_dtype)).to(device='xpu')
torch_output = torch.matmul(a.to(device='cpu', dtype=res_dtype), b.to(device='cpu',
dtype=res_dtype)).to(device='xpu')
print(f"triton_output={triton_output}")
print(f"torch_output={torch_output}")

Expand Down

0 comments on commit 5dcd09d

Please sign in to comment.