Skip to content

array indexing #151

Description

@glample

Numpy syntax with ellipsis is sometimes useful. Could we add it to torch indexing? It's easy to find a workaround, but the syntax is nice.

a = torch.DoubleTensor(3, 4).normal_()
print(a[..., 2])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

todoNot as important as medium or high priority tasks, but we will work on these.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions