Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add reversed(torch.Tensor)#9216

Closed
vishwakftw wants to merge 4 commits into
pytorch:masterfrom
vishwakftw:tensor-reverse
Closed

Add reversed(torch.Tensor)#9216
vishwakftw wants to merge 4 commits into
pytorch:masterfrom
vishwakftw:tensor-reverse

Conversation

@vishwakftw
Copy link
Copy Markdown
Contributor

Closes #3376

Comment thread test/test_torch.py Outdated
val = torch.arange(0, 10)
self.assertEqual(reversed(val), torch.arange(9, -1, -1))

val = torch.arange(0, 10).view(3, 3)

This comment was marked as off-topic.

This comment was marked as off-topic.

Comment thread test/test_torch.py Outdated
self._test_flip(self, use_cuda=False)

def test_reversed(self):
val = torch.arange(1, 10)

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ssnl has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ssnl has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@vishwakftw
Copy link
Copy Markdown
Contributor Author

Is this good to go? Sorry about the reminder.

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@soumith is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@vishwakftw vishwakftw deleted the tensor-reverse branch July 13, 2018 03:06
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
Closes pytorch#3376
Pull Request resolved: pytorch#9216

Differential Revision: D8753933

Pulled By: soumith

fbshipit-source-id: 5dac9b8b11ff34a205b6478db99b02fda8bd9cce
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Closes pytorch#3376
Pull Request resolved: pytorch#9216

Differential Revision: D8753933

Pulled By: soumith

fbshipit-source-id: 5dac9b8b11ff34a205b6478db99b02fda8bd9cce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[minor] support reversed(torch.Tensor)

5 participants