Skip to content

[TorchGen] Add mutable parameter to valuetype_type function in api/cpp.py#121415

Closed
cyyever wants to merge 1 commit intopytorch:mainfrom
cyyever:const_symint
Closed

[TorchGen] Add mutable parameter to valuetype_type function in api/cpp.py#121415
cyyever wants to merge 1 commit intopytorch:mainfrom
cyyever:const_symint

Conversation

@cyyever
Copy link
Copy Markdown
Collaborator

@cyyever cyyever commented Mar 7, 2024

This PR is a follow-up of #120076, it moves std::optional detection logic into valuetype_type of api/cpp.py by adding the mutable parameter, which facilitates future value type changes.

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Mar 7, 2024
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Mar 7, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/121415

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 1 Unrelated Failure

As of commit abd046b with merge base 476585b (image):

NEW FAILURE - The following job has failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@cyyever cyyever marked this pull request as draft March 7, 2024 15:00
@cyyever cyyever changed the title Const symint Use std::optional in torchgen Mar 7, 2024
@cyyever cyyever marked this pull request as ready for review March 7, 2024 15:16
@cyyever cyyever requested review from ezyang and malfet March 7, 2024 15:16
Copy link
Copy Markdown
Contributor

@malfet malfet left a comment

Choose a reason for hiding this comment

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

PR title does not seem to match the change you are trying to make: it's not about std::optional, but rather about mutability of arguments, isn't it?

@cyyever cyyever changed the title Use std::optional in torchgen Pass mutable to cpp.valuetype_type Mar 7, 2024
@cyyever
Copy link
Copy Markdown
Collaborator Author

cyyever commented Mar 7, 2024

PR title does not seem to match the change you are trying to make: it's not about std::optional, but rather about mutability of arguments, isn't it?

Sorry, I split the old PR into two parts, now the title is changed.

@cyyever cyyever changed the title Pass mutable to cpp.valuetype_type [TorchGen] Add mutable parameter to valuetype_type function Mar 7, 2024
@cyyever cyyever requested a review from malfet March 7, 2024 15:44
@cyyever cyyever changed the title [TorchGen] Add mutable parameter to valuetype_type function [TorchGen] Add mutable parameter to valuetype_type function in api/cpp.py Mar 7, 2024
@mikaylagawarecki mikaylagawarecki added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Mar 8, 2024
Copy link
Copy Markdown
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

okey dokey

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Mar 12, 2024

@pytorchbot merge -r

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 12, 2024
@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Successfully rebased const_symint onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout const_symint && git pull --rebase)

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: trunk / macos-12-py3-arm64 / build

Details for Dev Infra team Raised by workflow job

@cyyever
Copy link
Copy Markdown
Collaborator Author

cyyever commented Mar 12, 2024

@ezyang Thank you, but it can't be merged until #120076 is relanded.

@cyyever
Copy link
Copy Markdown
Collaborator Author

cyyever commented Mar 22, 2024

@pytorchbot rebase

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Successfully rebased const_symint onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout const_symint && git pull --rebase)

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Mar 24, 2024

@pytorchbot merge

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Mar 25, 2024

@pytorchbot revert -c weird -m "I think this needs to be reverted to after #120076 revert"

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@cyyever your PR has been successfully reverted.

pytorchmergebot added a commit that referenced this pull request Mar 25, 2024
…n api/cpp.py (#121415)"

This reverts commit c1fe09d.

Reverted #121415 on behalf of https://github.com/ezyang due to I think this needs to be reverted to after #120076 revert ([comment](#121415 (comment)))
ezyang added a commit that referenced this pull request Mar 25, 2024
…n api/cpp.py (#121415)"

This reverts commit c1fe09d.

[ghstack-poisoned]
pytorch-bot Bot pushed a commit that referenced this pull request Apr 22, 2024
…p.py (#121415)

This PR is a follow-up of #120076, it moves std::optional<Generator> detection logic into  ```valuetype_type``` of api/cpp.py by adding the mutable parameter, which facilitates future value type changes.

Pull Request resolved: #121415
Approved by: https://github.com/ezyang
pytorch-bot Bot pushed a commit that referenced this pull request Apr 22, 2024
…n api/cpp.py (#121415)"

This reverts commit c1fe09d.

Reverted #121415 on behalf of https://github.com/ezyang due to I think this needs to be reverted to after #120076 revert ([comment](#121415 (comment)))
@github-actions
Copy link
Copy Markdown
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions Bot added the Stale label May 24, 2024
@github-actions github-actions Bot closed this Jun 24, 2024
pytorchmergebot pushed a commit that referenced this pull request Sep 1, 2024
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Sep 20, 2024
@cyyever cyyever deleted the const_symint branch December 9, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged open source Reverted Stale topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants