Skip to content

Fix links in distribution docs (no code changes)#5531

Merged
apaszke merged 1 commit intopytorch:masterfrom
probtorch:distributions-docs
Mar 4, 2018
Merged

Fix links in distribution docs (no code changes)#5531
apaszke merged 1 commit intopytorch:masterfrom
probtorch:distributions-docs

Conversation

@fritzo
Copy link
Copy Markdown
Collaborator

@fritzo fritzo commented Mar 2, 2018

This registers more things in the sphinx docs for torch.distributions:

  • adds :undoc-members: to indicate which methods each distribution implements
  • adds :show-inheritance: to link to base classes
  • sets currentmodule so that base class links work
  • adds missing RelaxedBernoulli and RelaxedOneHotCategorical

Tested

I generated docs locally and tested that links work.

@fritzo
Copy link
Copy Markdown
Collaborator Author

fritzo commented Mar 2, 2018

cc @apaszke @rachtsingh

@apaszke apaszke merged commit 66547ca into pytorch:master Mar 4, 2018
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants