KEMBAR78
Fix for split gates enabled quantizable LSTM subclass by Ninja91 · Pull Request #140818 · pytorch/pytorch · GitHub
Skip to content

Conversation

@Ninja91
Copy link
Contributor

@Ninja91 Ninja91 commented Nov 15, 2024

Summary:

Motivation

In D65283170, we need subclass of quantizable LSTM to enable split_gates. Also, required for tests.

What's the change?

As subclass is not part of no_observer() set, an improper observer is added after the quantizable LSTM module. Here, we switch class check change to issubclass check on no_observer set.

Test Plan:

  • N6206576
  • CI.

Reviewed By: andrewor14

Differential Revision: D65989314

Summary:
### Motivation
In D65283170, we need subclass of quantizable LSTM to enable split_gates. Also, required for tests.

### What's the change?
As subclass is not part of no_observer() set, an improper observer is added after the quantizable LSTM module. Here, we switch class check change to issubclass check on no_observer set.

Test Plan:
- N6206576
- CI.

Reviewed By: andrewor14

Differential Revision: D65989314
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 15, 2024

🔗 Helpful Links

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

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

❗ 1 Active SEVs

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

✅ No Failures

As of commit 645bd9e with merge base e2e67a0 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65989314

@Ninja91
Copy link
Contributor Author

Ninja91 commented Nov 15, 2024

@pytorchmergebot help

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 15, 2024

❌ 🤖 pytorchbot command failed:

@pytorchbot: error: argument command: invalid choice: 'help' (choose from 'merge', 'revert', 'rebase', 'label', 'drci', 'cherry-pick', 'close')

usage: @pytorchbot [-h] {merge,revert,rebase,label,drci,cherry-pick,close} ...

Try @pytorchbot --help for more info.

@Ninja91
Copy link
Contributor Author

Ninja91 commented Nov 15, 2024

@pytorchmergebot merge

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 15, 2024

This PR needs to be approved by an authorized maintainer before merge.

@Ninja91 Ninja91 requested a review from XuehaiPan November 15, 2024 16:34
@Ninja91 Ninja91 self-assigned this Nov 15, 2024
@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 15, 2024
@andrewor14
Copy link
Contributor

Please wait for CI to pass before merging :)

@Ninja91
Copy link
Contributor Author

Ninja91 commented Nov 15, 2024

@pytorchmergebot merge

@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

pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
Summary:
### Motivation
In D65283170, we need subclass of quantizable LSTM to enable split_gates. Also, required for tests.

### What's the change?
As subclass is not part of no_observer() set, an improper observer is added after the quantizable LSTM module. Here, we switch class check change to issubclass check on no_observer set.

Test Plan:
- N6206576
- CI.

Reviewed By: andrewor14

Differential Revision: D65989314

Pull Request resolved: pytorch#140818
Approved by: https://github.com/andrewor14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants