Skip to content

Fix @skipIfNoFBGEMM for types#38432

Closed
malfet wants to merge 2 commits intopytorch:masterfrom
malfet:malfet/fix-nofbgemm-decorator-for-types
Closed

Fix @skipIfNoFBGEMM for types#38432
malfet wants to merge 2 commits intopytorch:masterfrom
malfet:malfet/fix-nofbgemm-decorator-for-types

Conversation

@malfet
Copy link
Copy Markdown
Contributor

@malfet malfet commented May 13, 2020

Return unmodified type from decorator if fbgemm is present.

Fix Tried to trace <__torch__.torch.classes.rnn.CellParamsBase object at 0x55f504c56b40> but it is not part of the active trace. Modules that are called during a trace must be registered as submodules of the thing being traced thrown from TestPostTrainingDynamic.test_quantized_rnn by preserving modules in returned qRNNBase (i.e. by partially reverting #38134 )

Copy link
Copy Markdown
Contributor

@supriyar supriyar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix!

@malfet
Copy link
Copy Markdown
Contributor Author

malfet commented May 13, 2020

Expect TestPostTrainingDynamic.test_quantized_rnn to fail, looking into potential fix

@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented May 13, 2020

💊 CI failures summary and remediations

As of commit c67d161 (more details on the Dr. CI page):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-CircleCI failure(s)

ci.pytorch.org: 1 failed


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

See how this bot performed.

This comment has been revised 8 times.

Preserve module list in QRNNBase. This partially reverts pytorch#38134
@malfet malfet requested a review from apaszke as a code owner May 14, 2020 00:41
@malfet malfet requested a review from jamesr66a May 14, 2020 00:42
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@malfet is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@malfet malfet deleted the malfet/fix-nofbgemm-decorator-for-types branch May 14, 2020 15:43
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@malfet merged this pull request in 3e9b433.

laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Return unmodified type from decorator if fbgemm is present.

Fix `Tried to trace <__torch__.torch.classes.rnn.CellParamsBase object at 0x55f504c56b40> but it is not part of the active trace. Modules that are called during a trace must be registered as submodules of the thing being traced` thrown from `TestPostTrainingDynamic.test_quantized_rnn`  by preserving modules in returned qRNNBase (i.e. by partially reverting pytorch#38134 )
Pull Request resolved: pytorch#38432

Differential Revision: D21567333

Pulled By: malfet

fbshipit-source-id: 364fa2c8fc6e400b4f2e425b922a977756aec1d8
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