Skip to content

Put symint overloads on a different name#79281

Closed
ezyang wants to merge 2 commits intogh/ezyang/1218/basefrom
gh/ezyang/1218/head
Closed

Put symint overloads on a different name#79281
ezyang wants to merge 2 commits intogh/ezyang/1218/basefrom
gh/ezyang/1218/head

Conversation

@ezyang
Copy link
Copy Markdown
Contributor

@ezyang ezyang commented Jun 10, 2022

Stack from ghstack (oldest at bottom):

Due to implicit conversion shenanigans, having both IntArrayRef
and SymIntArrayRef overloads makes {} ambiguous. While we could
fix this by making a single unified type that accepts all the overloads
we want, an easier fix was to just push the SymIntArrayRef overload
to its own name.

Signed-off-by: Edward Z. Yang ezyang@fb.com

Due to implicit conversion shenanigans, having both IntArrayRef
and SymIntArrayRef overloads makes {} ambiguous.  While we could
fix this by making a single unified type that accepts all the overloads
we want, an easier fix was to just push the SymIntArrayRef overload
to its own name.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

[ghstack-poisoned]
@ezyang ezyang requested review from albanD and soulitzer as code owners June 10, 2022 15:24
ezyang added a commit that referenced this pull request Jun 10, 2022
Due to implicit conversion shenanigans, having both IntArrayRef
and SymIntArrayRef overloads makes {} ambiguous.  While we could
fix this by making a single unified type that accepts all the overloads
we want, an easier fix was to just push the SymIntArrayRef overload
to its own name.

Signed-off-by: Edward Z. Yang <ezyangfb.com>

ghstack-source-id: 029d4a2
Pull Request resolved: #79281
@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Jun 10, 2022

🔗 Helpful links

✅ No Failures (0 Pending)

As of commit 6865425 (more details on the Dr. CI page):

Expand to see more

💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@ezyang ezyang requested review from Krovatkin, bdhirsh and suo June 10, 2022 15:24
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Jun 10, 2022
Copy link
Copy Markdown
Member

@suo suo left a comment

Choose a reason for hiding this comment

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

seems good

Due to implicit conversion shenanigans, having both IntArrayRef
and SymIntArrayRef overloads makes {} ambiguous.  While we could
fix this by making a single unified type that accepts all the overloads
we want, an easier fix was to just push the SymIntArrayRef overload
to its own name.

Signed-off-by: Edward Z. Yang <ezyangfb.com>

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Jun 12, 2022
Due to implicit conversion shenanigans, having both IntArrayRef
and SymIntArrayRef overloads makes {} ambiguous.  While we could
fix this by making a single unified type that accepts all the overloads
we want, an easier fix was to just push the SymIntArrayRef overload
to its own name.

Signed-off-by: Edward Z. Yang <ezyangfb.com>

ghstack-source-id: 24bab58
Pull Request resolved: #79281
@ezyang
Copy link
Copy Markdown
Contributor Author

ezyang commented Jun 12, 2022

@pytorchbot merge -g

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge failed due to HTTP Error 502: Bad Gateway
Raised by https://github.com/pytorch/pytorch/actions/runs/2481919224

@ezyang
Copy link
Copy Markdown
Contributor Author

ezyang commented Jun 12, 2022

@pytorchbot merge

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

@github-actions
Copy link
Copy Markdown
Contributor

Hey @ezyang.
You've committed this PR, but it does not have both a 'release notes: ...' and 'topics: ...' label. Please add one of each to the PR. The 'release notes: ...' label should represent the part of PyTorch that this PR changes (fx, autograd, distributed, etc) and the 'topics: ...' label should represent the kind of PR it is (not user facing, new feature, bug fix, perf improvement, etc). The list of valid labels can be found here for the 'release notes: ...' and here for the 'topics: ...'.
For changes that are 'topic: not user facing' there is no need for a release notes label.

facebook-github-bot pushed a commit that referenced this pull request Jun 15, 2022
Summary:
Due to implicit conversion shenanigans, having both IntArrayRef
and SymIntArrayRef overloads makes {} ambiguous.  While we could
fix this by making a single unified type that accepts all the overloads
we want, an easier fix was to just push the SymIntArrayRef overload
to its own name.

Signed-off-by: Edward Z. Yang <ezyangfb.com>

Pull Request resolved: #79281

Approved by: https://github.com/suo

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/213a8fc9927e2c90bd28a37f714950e4aa367ca6

Reviewed By: malfet

Differential Revision: D37114160

Pulled By: ezyang

fbshipit-source-id: 8a43b1841d5f45d89c96988221ec186c8d1f489e
@bigfootjon
Copy link
Copy Markdown
Member

@pytorchbot revert -m="Diff reverted internally" -c="ghfirst"

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here

pytorchmergebot added a commit that referenced this pull request Jun 15, 2022
This reverts commit 213a8fc.

Reverted #79281 on behalf of https://github.com/bigfootjon due to Diff reverted internally
@facebook-github-bot facebook-github-bot deleted the gh/ezyang/1218/head branch June 16, 2022 14:17
pytorchmergebot pushed a commit that referenced this pull request Jun 21, 2022
facebook-github-bot pushed a commit that referenced this pull request Jun 22, 2022
…79680)

Summary:
This relands #79281

Pull Request resolved: #79680
Approved by: https://github.com/malfet

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/efc73437435927982c62e6964ef3409dfb4e458e

Reviewed By: george-qi

Differential Revision: D37212870

Pulled By: Krovatkin

fbshipit-source-id: b26f91a1921a5c4de3a67f6d55e2ce89239c30c5
miladm pushed a commit to miladm/pytorch that referenced this pull request Jun 27, 2022
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 25, 2026
Due to implicit conversion shenanigans, having both IntArrayRef
and SymIntArrayRef overloads makes {} ambiguous.  While we could
fix this by making a single unified type that accepts all the overloads
we want, an easier fix was to just push the SymIntArrayRef overload
to its own name.

Signed-off-by: Edward Z. Yang <ezyangfb.com>

Pull Request resolved: pytorch#79281

Approved by: https://github.com/suo
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 25, 2026
This reverts commit 1c06c07.

Reverted pytorch#79281 on behalf of https://github.com/bigfootjon due to Diff reverted internally
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged oncall: jit Add this issue/PR to JIT oncall triage queue Reverted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants