-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Description
🐛 Bug
after our v1.3.0 doc changes i am seeing a test failure
FAIL: test_torch (main.TestDocCoverage)
To Reproduce
Steps to reproduce the behavior:
- git checkout upstream master
- python ./test/test_docs_coverage.py
AssertionError: Items in the second set but not the first:
'real'
'imag'
'conj'
'angle' :
The lists of tensor methods documented in tensors.rst and in python are
different. Did you forget to add a new thing to tensors.rst, or whitelist
things you don't want to document?
======================================================================
FAIL: test_torch (main.TestDocCoverage)
Traceback (most recent call last):
File "./test/test_docs_coverage.py", line 73, in test_torch
don't want to document?''')
AssertionError: Items in the first set but not the second:
'promote_types'
'result_type'
'can_cast'
Items in the second set but not the first:
'quantize_per_tensor'
'quantize_per_channel' :
The lists of functions documented in torch.rst and in python are different.
Did you forget to add a new thing to torch.rst, or whitelist things you
don't want to document?
Ran 2 tests in 0.003s
FAILED (failures=2)
Expected behavior
git checkout pr-fix-doc-test-failure
gottbrath@ubuntu:~/pytorch-for-doc$ python ./test/test_docs_coverage.py
..
Ran 2 tests in 0.003s
OK
cc @ezyang