- 
                Notifications
    You must be signed in to change notification settings 
- Fork 25.7k
Closed
Labels
module: error checkingBugs related to incorrect/lacking error checkingBugs related to incorrect/lacking error checkingmodule: mpsRelated to Apple Metal Performance Shaders frameworkRelated to Apple Metal Performance Shaders frameworktriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
🐛 Describe the bug
>>> import torch
>>> torch.constant_pad_nd(torch.ones([2, 3], device="cpu"), [])
tensor([[1., 1., 1.],
        [1., 1., 1.]])
>>> torch.constant_pad_nd(torch.ones([2, 3], device="mps"), [])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: invalid padding argument of size 0Versions
nightly
Metadata
Metadata
Assignees
Labels
module: error checkingBugs related to incorrect/lacking error checkingBugs related to incorrect/lacking error checkingmodule: mpsRelated to Apple Metal Performance Shaders frameworkRelated to Apple Metal Performance Shaders frameworktriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module