8000 Cannot build docs via `make html` Β· Issue #155092 Β· pytorch/pytorch Β· GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Cannot build docs via make htmlΒ #155092
Closed
Closed
@loganthomas

Description

@loganthomas

πŸ› Describe the bug

I cannot build the docs as specified in the README: https://github.com/pytorch/pytorch/blob/main/README.md#building-the-documentation

➜ make html
Traceback (most recent call last):
  File "/Users/logan/Desktop/repos/pytorch/docs/source/scripts/build_opsets.py", line 75, in <module>
    main()
  File "/Users/logan/Desktop/repos/pytorch/docs/source/scripts/build_opsets.py", line 58, in main
    aten_ops_list = get_aten()
                    ^^^^^^^^^^
  File "/Users/logan/Desktop/repos/pytorch/docs/source/scripts/build_opsets.py", line 20, in get_aten
    parsed_yaml = parse_native_yaml(NATIVE_FUNCTION_YAML_PATH, TAGS_YAML_PATH)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/logan/venvs/pytorch-dev/lib/python3.11/site-packages/torchgen/gen.py", line 241, in parse_native_yaml
    _GLOBAL_PARSE_NATIVE_YAML_CACHE[path] = parse_native_yaml_struct(
                                            ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/logan/venvs/pytorch-dev/lib/python3.11/site-packages/torchgen/gen.py", line 163, in parse_native_yaml_struct
    func, m = NativeFunction.from_yaml(e, loc, valid_tags, ignore_keys)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/logan/venvs/pytorch-dev/lib/python3.11/site-packages/torchgen/model.py", line 689, in from_yaml
    assert dispatch_key in dispatch_keys, (
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Dispatch key NestedTensorHPU of kernel native_dropout_nested is not a supported dispatch key.
  in /Users/logan/Desktop/repos/pytorch/aten/src/ATen/native/native_functions.yaml:286:
    native_dropout(Tensor input, float p, bool? train) -> (Tensor, Tensor)
make: *** [opset] Error 1

Versions

➜ python collect_env.py
Collecting environment information...
PyTorch version: 2.2.2
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 14.6.1 (x86_64)
GCC version: Could not collect
Clang version: 11.0.0 (clang-1100.0.33.17)
CMake version: Could not collect
Libc version: N/A

Python version: 3.11.9 (main, Apr  2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)] (64-bit runtime)
Python platform: macOS-14.6.1-x86_64-i386-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz

Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] pytorch_sphinx_theme2==0.1.0
[pip3] torch==2.2.2
[pip3] torchaudio==2.2.2
[pip3] torchvision==0.17.2
[conda] blas                      1.0                         mkl
[conda] mkl                       2021.4.0           hecd8cb5_637
[conda] mkl-service               2.4.0            py37h9ed2024_0
[conda] mkl_fft                   1.3.1            py37h4ab4a9b_0
[conda] mkl_random                1.2.2            py37hb2f4e1b_0
[conda] numpy                     1.19.4                   pypi_0    pypi
[conda] numpy-base                1.21.2           py37he0bd621_0
[conda] numpydoc                  1.5.0            py37hecd8cb5_0

cc @malfet @seemethere @svekars @sekyondaMeta @AlannaBurke @albanD

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionablemodule: buildBuild system issuesmodule: docsRelated to our documentation, both in docs/ and docblocksmodule: macosMac OS related issuesneeds reproductionSomeone else needs to try reproducing the issue given the instructions. No action needed from usertriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0