New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
define public API for torch.nn.utils #111026
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/111026
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 146d78c with merge base 95ff51d (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
Btw vector_to_params / params_to_vector seems related to flatten_parameters concept ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can expose the documentation for the functions you mentioned that are missing from the documentation over here
Those functions you mentioned that are failing the public bindings test should still be added to the __all__
I added the other 2 functions from |
Notes can have more than one paragraph. Successive paragraphs must indent to the same level as the rest of the note: https://sublime-and-sphinx-guide.readthedocs.io/en/latest/notes_warnings.html#notes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future reference, you can check out the docs preview from your PR under
📄 Preview Python docs built from this PR
in the pytorch-bot comment above.
It renders nicely to me, it would be awesome if you could add short docstrings for fuse_conv_bn_eval
fuse_conv_bn_weights
fuse_linear_bn_eval
fuse_linear_bn_weights
@mikaylagawarecki I gave it my best effort! Please LMK what you think of my changes. |
|
…use_linear_bn_weights or fuse_conv_bn_weights
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is some much appreciated cleanup! Thanks a lot for your effort :)
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
As pytorch/pytorch#111026 got merged, the workaround became redundant.
Adding modules imported here and the following functions to the
__all__
: