Skip to content

Return namedtuples from torch.* function with multiple return arguments #394

@apaszke

Description

@apaszke

Because this:

actions = model(input).max(1).indices

looks much better than this:

actions = model(input).max(1)[1]

Metadata

Metadata

Assignees

Labels

StalefeatureA request for a proper, new feature.module: uxtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions