[TorchGen] Add mutable parameter to valuetype_type function in api/cpp.py#121415
[TorchGen] Add mutable parameter to valuetype_type function in api/cpp.py#121415cyyever wants to merge 1 commit intopytorch:mainfrom
Conversation
🔗 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 FailureAs of commit abd046b with merge base 476585b ( 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. |
malfet
left a comment
There was a problem hiding this comment.
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. |
|
@pytorchbot merge -r |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
358d5fd to
b1b1b84
Compare
Merge startedYour 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 |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / macos-12-py3-arm64 / build Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
b1b1b84 to
27c05f7
Compare
|
@pytorchbot merge |
Merge startedYour 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 |
|
@pytorchbot revert -c weird -m "I think this needs to be reverted to after #120076 revert" |
|
@pytorchbot successfully started a revert job. Check the current status here. |
|
@cyyever your PR has been successfully reverted. |
…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)))
…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
…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)))
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Reland of #121415 Pull Request resolved: #134549 Approved by: https://github.com/ezyang
Reland of pytorch#121415 Pull Request resolved: pytorch#134549 Approved by: https://github.com/ezyang
This PR is a follow-up of #120076, it moves std::optional detection logic into
valuetype_typeof api/cpp.py by adding the mutable parameter, which facilitates future value type changes.