Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use cpu for tensor comparison in python/tutorials/01-vector-add.py #3241

Closed
anmyachev opened this issue Jan 23, 2025 · 0 comments · Fixed by #3242
Closed

Don't use cpu for tensor comparison in python/tutorials/01-vector-add.py #3241

anmyachev opened this issue Jan 23, 2025 · 0 comments · Fixed by #3242
Labels
enhancement New feature or request

Comments

@anmyachev
Copy link
Contributor

print(output_torch.cpu())
print(output_triton.cpu())
print(f'The maximum difference between torch and triton is '
f'{torch.max(torch.abs(output_torch.cpu() - output_triton.cpu()))}')

Part of #2030

@anmyachev anmyachev added the enhancement New feature or request label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant