KEMBAR78
no-op torch.library.custom_op APIs on torch.deploy by zou3519 · Pull Request #139509 · pytorch/pytorch · GitHub
Skip to content

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Nov 1, 2024

Stack from ghstack (oldest at bottom):

We forgot this case in the previous PR. Fixes
#137536

Test Plan:

  • better tests

We forgot this case in the previous PR. Fixes
#137536

Test Plan:
- better tests

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 1, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 3d24479 with merge base 5e4c8b6 (image):
💚 Looks good so far! There are no failures yet. 💚

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

zou3519 added a commit that referenced this pull request Nov 1, 2024
We forgot this case in the previous PR. Fixes
#137536

Test Plan:
- better tests

ghstack-source-id: ad6a006
Pull Request resolved: #139509
@zou3519 zou3519 added the release notes: composability release notes category label Nov 4, 2024
@zou3519
Copy link
Contributor Author

zou3519 commented Nov 4, 2024

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 4, 2024
@pytorchmergebot
Copy link
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 pushed a commit that referenced this pull request Nov 5, 2024
We don't need to do a loop over all the args, kwargs in the
AdInplaceOrView key; we just need to bump the version on the args,
kwargs that are mutable.

On the benchmark mentioned in
#139494
this made the time go from
```
mutate2 = 61.72943878173828
no_mutate2 = 36.89440155029297
mutate = 236.3092498779297
no_mutate = 59.31964874267578

```
to
```
mutate2 = 47.976478576660156
no_mutate2 = 38.37468719482422
mutate = 71.21315002441406
no_mutate = 59.7432975769043
```

Test Plan:
- existing tests
Pull Request resolved: #139513
Approved by: https://github.com/bdhirsh
ghstack dependencies: #139509
@github-actions github-actions bot deleted the gh/zou3519/1085/head branch December 5, 2024 02:13
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
We don't need to do a loop over all the args, kwargs in the
AdInplaceOrView key; we just need to bump the version on the args,
kwargs that are mutable.

On the benchmark mentioned in
pytorch#139494
this made the time go from
```
mutate2 = 61.72943878173828
no_mutate2 = 36.89440155029297
mutate = 236.3092498779297
no_mutate = 59.31964874267578

```
to
```
mutate2 = 47.976478576660156
no_mutate2 = 38.37468719482422
mutate = 71.21315002441406
no_mutate = 59.7432975769043
```

Test Plan:
- existing tests
Pull Request resolved: pytorch#139513
Approved by: https://github.com/bdhirsh
ghstack dependencies: pytorch#139509
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 release notes: composability release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants