Skip to content

[WIP, but please review] Enforce doc coverage, clean torch.* namespace#15980

Closed
zasdfgbnm wants to merge 5 commits intopytorch:masterfrom
zasdfgbnm:check-docs-cov
Closed

[WIP, but please review] Enforce doc coverage, clean torch.* namespace#15980
zasdfgbnm wants to merge 5 commits intopytorch:masterfrom
zasdfgbnm:check-docs-cov

Conversation

@zasdfgbnm
Copy link
Copy Markdown
Collaborator

@zasdfgbnm zasdfgbnm commented Jan 12, 2019

People (PR authors, reviewers) keep forgetting to add docs for new ops to torch.rst, and sometimes they add things that should be in torch.nn.functional mistakenly to torch.* namespace.

So I write a test_docs_coverage.py, that assert everything in torch should also be in torch.rst vice versa, unless explicitly whitelisted in test_docs_coverage.py.

This work is currently in progress, but since there are big API changes, before moving on, I'd like to hear comments from PyTorch people to know if this is a good idea.

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Jan 13, 2019

This seems... reasonable, I guess? What about things in torch.nn?

@zasdfgbnm
Copy link
Copy Markdown
Collaborator Author

@ezyang I think we should do the same thing

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.

2 participants