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

Skip to content

[JIT] Handle None indexing in TorchScript#18615

Closed
t-vi wants to merge 1 commit into
pytorch:masterfrom
t-vi:jit_none_indexing
Closed

[JIT] Handle None indexing in TorchScript#18615
t-vi wants to merge 1 commit into
pytorch:masterfrom
t-vi:jit_none_indexing

Conversation

@t-vi
Copy link
Copy Markdown
Collaborator

@t-vi t-vi commented Mar 29, 2019

t[None], t[None, 1:, None] and friends for unsqueezing

Fixes: #12810

t[None], t[None, 1:, None] and friends for unsqueezing

Fixes: pytorch#12810
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Mar 29, 2019
@t-vi
Copy link
Copy Markdown
Collaborator Author

t-vi commented Mar 29, 2019

I'd say the CI isn't me.

Copy link
Copy Markdown
Collaborator

@wanchaol wanchaol left a comment

Choose a reason for hiding this comment

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

lgtm

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.

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

@eellison
Copy link
Copy Markdown
Contributor

eellison commented Apr 8, 2019

It would be nice to handle lists as well, since None indexing is also valid for lists in python a[1:None] ...

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@wanchaol merged this pull request in 026a9c6.

zhangguanheng66 pushed a commit to zhangguanheng66/pytorch that referenced this pull request May 6, 2019
Summary:
t[None], t[None, 1:, None] and friends for unsqueezing

Fixes: pytorch#12810
Pull Request resolved: pytorch#18615

Differential Revision: D14837039

Pulled By: wanchaol

fbshipit-source-id: ab3862c41629f087b0a46b7c59c93dac4018e6fe
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
t[None], t[None, 1:, None] and friends for unsqueezing

Fixes: pytorch#12810
Pull Request resolved: pytorch#18615

Differential Revision: D14837039

Pulled By: wanchaol

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

Labels

oncall: jit Add this issue/PR to JIT oncall triage queue open source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The JIT does not support Unsqueezing using the None keyword

5 participants