Skip to content

Conversation

@mrshenli
Copy link
Contributor

@mrshenli mrshenli commented Nov 20, 2019

Stack from ghstack:

The path torch.distributed.rpc.api is an implementation detail, which
should not be used by applications to import RPC APIs. Instead, all
RPC APIs are exposed directly as torch.distributed.rpc.*. This
commit makes the API doc consistent with the above expectation.

closes #30014

Differential Revision: D18616359

@mrshenli mrshenli requested review from pritamdamania87, rohan-varma and zhaojuanmao and removed request for rohan-varma November 20, 2019 15:40
@mrshenli
Copy link
Contributor Author

rpc_api

The path torch.distributed.rpc.api is an implementation detail, which
should not be used by applications to import RPC APIs. Instead, all
RPC APIs are exposed directly as torch.distributed.rpc.*. This
commit makes the API doc consistent with the above expectation.

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

[ghstack-poisoned]
Copy link
Contributor

@rohan-varma rohan-varma 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 doing this!


.. automodule:: torch.distributed.rpc.api
:members:
.. automodule:: torch.distributed.rpc
Copy link
Contributor

Choose a reason for hiding this comment

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

I was trying to do something similar when working on the first version of this docs, but the downside with this approach is that if we add a new function, we'd have to manually remember to add to the doc here. Not sure how to get around that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, that is indeed a problem for this approach, and we can figure out how to solve it later (Maybe remove api.py and move everything to __init__.py). As for now, let's make sure the doc exposes the correct path.

@facebook-github-bot
Copy link
Contributor

@mrshenli merged this pull request in ff7afed.

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.

5 participants