forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] mul chalf: cpu scalar and cuda tensor case
pytorch#76158 added `chalf` support for `mul` on CUDA incorrectly. Following sample ```python torch.mul(torch.zeros(3, device='cuda'), 2.5) # CUDA Tensor and CPU Scalar ``` fails with ``` RuntimeError: iter.device(arg).is_cuda() INTERNAL ASSERT FAILED at "../aten/src/ATen/native/cuda/JitLoops.cuh":83, please report a bug to PyTorch. argument 2: expected a CUDA device but found cpu ``` Pull Request resolved: pytorch#76364 Approved by: https://github.com/mruberry
- Loading branch information
1 parent
100e72f
commit 1f1d0b3
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters