-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Closed
Labels
module: dynamic shapestriagedThis 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
The following two functions break for dynamic inputs:
import torch
@torch.compile(dynamic=True)
def fn1(a):
return a + torch.zeros((3,))
@torch.compile(dynamic=True)
def fn2(a):
return torch.full((3,), a)
fn1(5)
fn2(5)Versions
master
cc @ezyang
Metadata
Metadata
Assignees
Labels
module: dynamic shapestriagedThis 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