Connect Tensor.__ipow__ to pow_ method#76900
Closed
amjames wants to merge 9 commits intogh/amjames/2/basefrom
Closed
Connect Tensor.__ipow__ to pow_ method#76900amjames wants to merge 9 commits intogh/amjames/2/basefrom
amjames wants to merge 9 commits intogh/amjames/2/basefrom
Conversation
The `pow_` method should be connected to `Tensor.__ipow__` so that the operator `**=` works correctly. [ghstack-poisoned]
Contributor
🔗 Helpful links
✅ No Failures (0 Pending)As of commit 86a31b4 (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. |
The `pow_` method should be connected to `Tensor.__ipow__` so that the operator `**=` works correctly. [ghstack-poisoned]
Collaborator
The `pow_` method should be connected to `Tensor.__ipow__` so that the operator `**=` works correctly. [ghstack-poisoned]
|
Hi @amjames, this looks good from the array API compliance point of view. I think we'll just need to add a test for |
Collaborator
Author
The `pow_` method should be connected to `Tensor.__ipow__` so that the operator `**=` works correctly. [ghstack-poisoned]
The `pow_` method should be connected to `Tensor.__ipow__` so that the operator `**=` works correctly. [ghstack-poisoned]
The `pow_` method should be connected to `Tensor.__ipow__` so that the operator `**=` works correctly. [ghstack-poisoned]
The `pow_` method should be connected to `Tensor.__ipow__` so that the operator `**=` works correctly. [ghstack-poisoned]
28 tasks
facebook-github-bot
pushed a commit
that referenced
this pull request
May 17, 2022
Summary: The `pow_` method should be connected to `Tensor.__ipow__` so that the operator `**=` works correctly. Pull Request resolved: #76900 Approved by: https://github.com/mruberry Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/39d3a7ffe57740678aff41027857c1a84c941cd5 Reviewed By: atalman Differential Revision: D36412517 Pulled By: atalman fbshipit-source-id: a3a8ac2e3f5ca1f621e2bdf085aafaad54deec6b
laurentdupin
pushed a commit
to laurentdupin/pytorch
that referenced
this pull request
Apr 25, 2026
The `pow_` method should be connected to `Tensor.__ipow__` so that the operator `**=` works correctly. Pull Request resolved: pytorch#76900 Approved by: https://github.com/mruberry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
The
pow_method should be connected toTensor.__ipow__so that theoperator
**=works correctly.Part of #58742