Skip to content

Conversation

kiukchung
Copy link
Contributor

Summary:

  1. add deprecation docstring to torch_dist_role and create_torch_dist_role - we cannot add a warnings.warn(DeprecationWarning) because unfortunately dist.ddp uses torch_dist_role (hence adding it via warnings will print that warning each time dist.ddp is loaded).
  2. added docs for configfile under experimental
  3. fixed a few docstring errors
  4. rearranged component toctree to be grouped more logically

Differential Revision: D31697032

…_torch_dist_role, added docs for configfile under experimental, fixed a few docstring errors, rearranged component toctree to be grouped more logically

Summary:
1. add deprecation docstring to torch_dist_role and create_torch_dist_role - we cannot add a `warnings.warn(DeprecationWarning)` because unfortunately `dist.ddp` uses `torch_dist_role` (hence adding it via `warnings` will print that warning each time `dist.ddp` is loaded).
2. added docs for configfile under experimental
3. fixed a few docstring errors
4. rearranged component toctree to be grouped more logically

Differential Revision: D31697032

fbshipit-source-id: 9e7d8f0a34525ef80d63eb6c2289c82929832e37
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Oct 15, 2021
@facebook-github-bot
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Oct 15, 2021

Codecov Report

Merging #266 (3c2cdcc) into main (29f1e5e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #266   +/-   ##
=======================================
  Coverage   91.61%   91.61%           
=======================================
  Files          60       60           
  Lines        2767     2768    +1     
=======================================
+ Hits         2535     2536    +1     
  Misses        232      232           
Impacted Files Coverage Δ
torchx/components/__init__.py 100.00% <ø> (ø)
torchx/components/base/__init__.py 100.00% <ø> (ø)
torchx/components/base/roles.py 100.00% <ø> (ø)
torchx/runner/api.py 96.29% <ø> (ø)
torchx/schedulers/api.py 90.32% <ø> (ø)
torchx/schedulers/local_scheduler.py 93.14% <ø> (ø)
torchx/runner/config.py 100.00% <100.00%> (ø)

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 29f1e5e...3c2cdcc. Read the comment docs.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in bd1c36d.

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. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants