Skip to content

[jit] Support named tuple return from operators #16233

@ezyang

Description

@ezyang

#15429 makes the following syntax valid in PyTorch programs:

ret = a.svd()
U = ret.U  # previously, only ret[0] was supported

This syntax is not currently understood by TorchScript. It should be handled.

cc @zasdfgbnm (not saying you have to do this, but just to let you know :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    oncall: jitAdd this issue/PR to JIT oncall triage queue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions