Skip to content

Conversation

@Krishn1412
Copy link
Contributor

  • Fix subclass initialization by ensuring each subclass gets its own per-class dispatch tables and correctly inherits parent op mappings without recursion.
  • Look at PR.

the new test with real op fails for the same line
self.assertIsNot(Parent._ATEN_OP_TABLE, Child._ATEN_OP_TABLE).

Also when it is called using the child tensor, it works.

For the inheritance test case,
it fails at
self.assertEqual(C._ATEN_OP_TABLE[C]["shared"], "from_b")
AssertionError: 'from_a' != 'from_b'
Fix subclass initialization by ensuring each subclass gets its own per-class
dispatch tables and correctly inherits parent op mappings.
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 27, 2025

🔗 Helpful Links

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

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

❗ 2 Active SEVs

There are 2 currently active SEVs. If your PR is affected, please view them below:

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

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 27, 2025
@Krishn1412
Copy link
Contributor Author

Can you take a look @jerryzh168?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant