-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Closed
Labels
featureA request for a proper, new feature.A request for a proper, new feature.module: dynamooncall: pt2triagedThis 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
from typing import NamedTuple
class MyTuple(NamedTuple):
first: torch.Tensor
second: torch.Tensor
def add(self):
return first + second
def my_fn(x):
return x.add()
torch._dynamo.export(my_fn, MyTuple(first=torch.tensor(1), second=torch.tensor(2)))
raises torch._dynamo.exc.Unsupported: NamedTupleVariable.add
cc @ezyang @soumith @msaroufim @wconstab @ngimel @bdhirsh @mlazos @voznesenskym @yanboliang @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @chunyuan-w @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @desertfire
Metadata
Metadata
Assignees
Labels
featureA request for a proper, new feature.A request for a proper, new feature.module: dynamooncall: pt2triagedThis 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