-
Notifications
You must be signed in to change notification settings - Fork 27.7k
torch.linalg.qr ignores zero batched dimensions #50576
Copy link
Copy link
Closed
Labels
module: linear algebraIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmulIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmultriagedThis 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
Metadata
Metadata
Assignees
Labels
module: linear algebraIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmulIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmultriagedThis 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
🐛 Bug
torch.linalg.qrdoes not work correctly when input is a batched tensor with some of the batch dimensions set to zero.To Reproduce
Expected behavior
Qshould have the shape(1, 0, 2, 4, 4)andRshould have the shape(1, 0, 2, 4, 5)for the above example.cc @jianyuh @nikitaved @pearu @mruberry @heitorschueroff @walterddr @IvanYashchuk @antocuni