Skip to content

Use leaky singletons for torch.distributed.#32923

Closed
pritamdamania87 wants to merge 1 commit intogh/pritamdamania87/93/basefrom
gh/pritamdamania87/93/head
Closed

Use leaky singletons for torch.distributed.#32923
pritamdamania87 wants to merge 1 commit intogh/pritamdamania87/93/basefrom
gh/pritamdamania87/93/head

Conversation

@pritamdamania87
Copy link
Contributor

@pritamdamania87 pritamdamania87 commented Feb 3, 2020

Stack from ghstack:

As per
https://isocpp.org/wiki/faq/ctors#construct-on-first-use-v2 and
https://isocpp.org/wiki/faq/ctors#static-init-order-on-first-use-members, we
should be using leaky singletons to avoid static initialization order problem.

Closes #27412

Differential Revision: D19688986

As per
https://isocpp.org/wiki/faq/ctors#construct-on-first-use-v2 and
https://isocpp.org/wiki/faq/ctors#static-init-order-on-first-use-members, we
should be using leaky singletons to avoid static initialization order problem.

Closes #27412

Differential Revision: [D19688986](https://our.internmc.facebook.com/intern/diff/D19688986/)

[ghstack-poisoned]
pritamdamania87 pushed a commit that referenced this pull request Feb 3, 2020
As per
https://isocpp.org/wiki/faq/ctors#construct-on-first-use-v2 and
https://isocpp.org/wiki/faq/ctors#static-init-order-on-first-use-members, we
should be using leaky singletons to avoid static initialization order problem.

Closes #27412

Differential Revision: [D19688986](https://our.internmc.facebook.com/intern/diff/D19688986/)

ghstack-source-id: 97601384
Pull Request resolved: #32923
@kostmo
Copy link
Member

kostmo commented Feb 3, 2020

💊 CircleCI build failures summary and remediations

As of commit 0d9e162:

None of the build failures appear to be your fault.

  • 1/1 recognized as flaky ❄️
    • Re-run these jobs?

Detailed failure analysis

One may explore the probable reasons each build failed interactively on the Dr. CI website.

❄️ 1 failure recognized as flaky

The following build failures have been detected as flaky and may not be your fault:

See CircleCI build caffe2_onnx_py3_6_clang7_ubuntu16_04_test (1/1)

Step: "Test" (full log | pattern match details) ❄️

Feb 03 02:59:49 E RuntimeError: required keyword attribute 'Y_scale' is undefined
Feb 03 02:59:49 k = 'Y_scale' 
Feb 03 02:59:49  
Feb 03 02:59:49     def _node_getitem(self, k): 
Feb 03 02:59:49         r""" 
Feb 03 02:59:49         Accessor for attributes of a node which is polymorphic over 
Feb 03 02:59:49         return type. 
Feb 03 02:59:49      
Feb 03 02:59:49         NB: This is monkey-patched onto Node. 
Feb 03 02:59:49         """ 
Feb 03 02:59:49 >       sel = self.kindOf(k) 
Feb 03 02:59:49 E       RuntimeError: required keyword attribute 'Y_scale' is undefined 
Feb 03 02:59:49  
Feb 03 02:59:49 ../.local/lib/python3.6/site-packages/torch/onnx/utils.py:843: RuntimeError 
Feb 03 02:59:49 =============================== warnings summary =============================== 
Feb 03 02:59:49 /usr/local/lib/python3.6/dist-packages/setuptools-38.5.1-py3.6.egg/pkg_resources/_vendor/appdirs.py:130 
Feb 03 02:59:49 /usr/local/lib/python3.6/dist-packages/setuptools-38.5.1-py3.6.egg/pkg_resources/_vendor/appdirs.py:130 
Feb 03 02:59:49   /usr/local/lib/python3.6/dist-packages/setuptools-38.5.1-py3.6.egg/pkg_resources/_vendor/appdirs.py:130: DeprecationWarning: invalid escape sequence \D 
Feb 03 02:59:49  
Feb 03 02:59:49 /usr/local/lib/python3.6/dist-packages/setuptools-38.5.1-py3.6.egg/pkg_resources/_vendor/appdirs.py:235 
Feb 03 02:59:49 /usr/local/lib/python3.6/dist-packages/setuptools-38.5.1-py3.6.egg/pkg_resources/_vendor/appdirs.py:235 
Feb 03 02:59:49   /usr/local/lib/python3.6/dist-packages/setuptools-38.5.1-py3.6.egg/pkg_resources/_vendor/appdirs.py:235: DeprecationWarning: invalid escape sequence \P 

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.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a751dda.

@facebook-github-bot facebook-github-bot deleted the gh/pritamdamania87/93/head branch February 7, 2020 15:18
BowenBao pushed a commit to BowenBao/pytorch that referenced this pull request Feb 12, 2020
Summary:
Pull Request resolved: pytorch#32923

As per
https://isocpp.org/wiki/faq/ctors#construct-on-first-use-v2 and
https://isocpp.org/wiki/faq/ctors#static-init-order-on-first-use-members, we
should be using leaky singletons to avoid static initialization order problem.

Closes pytorch#27412
ghstack-source-id: 97601384

Test Plan: waitforbuildbot

Differential Revision: D19688986

fbshipit-source-id: 8c1935fb7da8a7116dbca55eb43dc04bc02695ac
ttumiel pushed a commit to ttumiel/pytorch that referenced this pull request Mar 4, 2020
Summary:
Pull Request resolved: pytorch#32923

As per
https://isocpp.org/wiki/faq/ctors#construct-on-first-use-v2 and
https://isocpp.org/wiki/faq/ctors#static-init-order-on-first-use-members, we
should be using leaky singletons to avoid static initialization order problem.

Closes pytorch#27412
ghstack-source-id: 97601384

Test Plan: waitforbuildbot

Differential Revision: D19688986

fbshipit-source-id: 8c1935fb7da8a7116dbca55eb43dc04bc02695ac
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.

6 participants