Skip to content

Conversation

@bzinodev
Copy link
Contributor

@bzinodev bzinodev commented Sep 22, 2020

Stack from ghstack:

This PR prevents freezing cleaning up a submodule when user requests to
preserve a submodule.

Differential Revision: D23844969

This PR prevents freezing cleaning up a submodule when user requests to
preserve a submodule.

[ghstack-poisoned]
@bzinodev bzinodev requested a review from apaszke as a code owner September 22, 2020 17:42
bzinodev added a commit that referenced this pull request Sep 22, 2020
This PR prevents freezing cleaning up a submodule when user requests to
preserve a submodule.

ghstack-source-id: d246b2f
Pull Request resolved: #45143
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Sep 22, 2020
@bzinodev bzinodev requested a review from eellison September 22, 2020 17:44
@dr-ci
Copy link

dr-ci bot commented Sep 22, 2020

💊 CI failures summary and remediations

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


💚 💚 Looks good so far! There are no failures yet. 💚 💚



1 failure confirmed as flaky and can be ignored:

  • pytorch_xla_linux_bionic_py3_6_clang9_build

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 or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 3 times.

@codecov
Copy link

codecov bot commented Sep 23, 2020

Codecov Report

Merging #45143 into gh/bzinodev/17/base will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@                   Coverage Diff                   @@
##           gh/bzinodev/17/base   #45143      +/-   ##
=======================================================
- Coverage                67.84%   67.83%   -0.01%     
=======================================================
  Files                      384      384              
  Lines                    50064    50064              
=======================================================
- Hits                     33965    33963       -2     
- Misses                   16099    16101       +2     
Impacted Files Coverage Δ
torch/utils/_benchmark/utils/common.py 77.68% <0.00%> (-2.48%) ⬇️
torch/testing/_internal/expecttest.py 78.57% <0.00%> (+1.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1fd48a9...52d5f06. Read the comment docs.

Copy link
Contributor

@eellison eellison left a comment

Choose a reason for hiding this comment

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

LGTM

class TestModule(nn.Module):
def __init__(self):
super(TestModule, self).__init__()
self.sub1 = SubModule() # aliasing
Copy link
Contributor

Choose a reason for hiding this comment

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

stray aliasing comment ?

m = TestModule()
ms = torch.jit.script(m)
ms.eval()
mf = torch._C._freeze_module(ms._c, ["sub1"])
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: use public api torch.jit.freeze

@facebook-github-bot
Copy link
Contributor

@bzinodev merged this pull request in 13f76f2.

@facebook-github-bot facebook-github-bot deleted the gh/bzinodev/17/head branch October 1, 2020 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants