8000 torch.fmax() between MPS tensor and CPU scalar crashes · Issue #143933 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content
torch.fmax() between MPS tensor and CPU scalar crashes #143933
@malfet

Description

@malfet

🐛 Describe the bug

Discovered while running python ../test/inductor/test_torchinductor.py -v -k test_fmin_fmax_mps
But could be reproduced as single line:

python -c "import torch;print(torch.fmax(torch.rand(7, device='mps'), torch.tensor(.3)))"

Versions

2.5.1, nightly

cc @kulinseth @albanD @DenisVieriu97 @jhavukainen

Metadata

Metadata

Assignees

Labels

module: crashProblem manifests as a hard crash, as opposed to a RuntimeErrormodule: mpsRelated to Apple Metal Performance Shaders frameworkmodule: regressionIt used to work, and now it doesn'ttriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0