Skip to content

Conversation

StrongerXi
Copy link
Contributor

@StrongerXi StrongerXi commented Apr 10, 2025

Stack from ghstack (oldest at bottom):

Previously we were passing in the instance as first argument to a
super().some_classmethod(...) call, but we should've passed in the
type object instead, per semantics of @classmethod.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Apr 10, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 5de2dae with merge base 1a1a32c (image):
💚 Looks good so far! There are no failures yet. 💚

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

@StrongerXi StrongerXi requested a review from anijain2305 April 11, 2025 21:53
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #151062

pytorchmergebot pushed a commit that referenced this pull request Apr 15, 2025
…n__` (#151061)

As title, this patch fixes bugs in
1. emulating `has_torch_function`
2. emulating calling `__torch_function__`
3. building a callable VT for non-classmethod `__torch_function__`

Fixes #120799, #150265, #150848.

Pull Request resolved: #151061
Approved by: https://github.com/anijain2305, https://github.com/mlazos
ghstack dependencies: #151060
pytorchmergebot pushed a commit that referenced this pull request Apr 15, 2025
Since #149792 deprecates `traceable_tensor_subclasses` and it's been
landed for over a week, we can safely remove all the old code that uses
`traceable_tensor_subclasses` (they were primarily for testing purposes
and are equivalent to no-ops now).

Pull Request resolved: #151062
Approved by: https://github.com/mlazos, https://github.com/anijain2305
ghstack dependencies: #151060, #151061
timocafe pushed a commit to timocafe/pytorch that referenced this pull request Apr 16, 2025
)

Previously we were passing in the instance as first argument to a
`super().some_classmethod(...)` call, but we should've passed in the
type object instead, per semantics of `@classmethod`.

Pull Request resolved: pytorch#151060
Approved by: https://github.com/Skylion007, https://github.com/mlazos, https://github.com/anijain2305
timocafe pushed a commit to timocafe/pytorch that referenced this pull request Apr 16, 2025
…n__` (pytorch#151061)

As title, this patch fixes bugs in
1. emulating `has_torch_function`
2. emulating calling `__torch_function__`
3. building a callable VT for non-classmethod `__torch_function__`

Fixes pytorch#120799, pytorch#150265, pytorch#150848.

Pull Request resolved: pytorch#151061
Approved by: https://github.com/anijain2305, https://github.com/mlazos
ghstack dependencies: pytorch#151060
timocafe pushed a commit to timocafe/pytorch that referenced this pull request Apr 16, 2025
…51062)

Since pytorch#149792 deprecates `traceable_tensor_subclasses` and it's been
landed for over a week, we can safely remove all the old code that uses
`traceable_tensor_subclasses` (they were primarily for testing purposes
and are equivalent to no-ops now).

Pull Request resolved: pytorch#151062
Approved by: https://github.com/mlazos, https://github.com/anijain2305
ghstack dependencies: pytorch#151060, pytorch#151061
amathewc pushed a commit to amathewc/pytorch that referenced this pull request Apr 17, 2025
)

Previously we were passing in the instance as first argument to a
`super().some_classmethod(...)` call, but we should've passed in the
type object instead, per semantics of `@classmethod`.

Pull Request resolved: pytorch#151060
Approved by: https://github.com/Skylion007, https://github.com/mlazos, https://github.com/anijain2305
amathewc pushed a commit to amathewc/pytorch that referenced this pull request Apr 17, 2025
…n__` (pytorch#151061)

As title, this patch fixes bugs in
1. emulating `has_torch_function`
2. emulating calling `__torch_function__`
3. building a callable VT for non-classmethod `__torch_function__`

Fixes pytorch#120799, pytorch#150265, pytorch#150848.

Pull Request resolved: pytorch#151061
Approved by: https://github.com/anijain2305, https://github.com/mlazos
ghstack dependencies: pytorch#151060
amathewc pushed a commit to amathewc/pytorch that referenced this pull request Apr 17, 2025
…51062)

Since pytorch#149792 deprecates `traceable_tensor_subclasses` and it's been
landed for over a week, we can safely remove all the old code that uses
`traceable_tensor_subclasses` (they were primarily for testing purposes
and are equivalent to no-ops now).

Pull Request resolved: pytorch#151062
Approved by: https://github.com/mlazos, https://github.com/anijain2305
ghstack dependencies: pytorch#151060, pytorch#151061
Divigroup-RAP pushed a commit to Divigroup-RAP/PYTORCH that referenced this pull request Apr 22, 2025
Previously we were passing in the instance as first argument to a
`super().some_classmethod(...)` call, but we should've passed in the
type object instead, per semantics of `classmethod`.

ghstack-source-id: 7ac6b8a
Pull Request resolved: pytorch/pytorch#151060
@github-actions github-actions bot deleted the gh/StrongerXi/100/head branch May 16, 2025 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants