-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Labels
triagedThis 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
import torch
empty = torch.randn([0])
tensor = torch.randn(2, 3)
result = torch.pow(tensor, 1, out=empty.clone())
RuntimeError: The size of tensor a (0) must match the size of tensor b (3) at non-singleton dimension 1
However, the following works:
import torch
empty = torch.randn([0])
tensor = torch.randn(2, 3)
result = torch.pow(tensor, 0, out=empty.clone())
cc @pbelevich
Metadata
Metadata
Assignees
Labels
triagedThis 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