Skip to content

flip a Tensor #229

@glample

Description

@glample

Sometimes it's convenient to do stuff like y = x[::-1] to inverse the order of the elements of a tensor, even on another axis like: y = x[:, ::-1]
Would it be possible to add this feature to pytorch?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions