Add new dependences for gen_pyi.py (#150391)

As the title stated.

When we update some functions in _torch_docs.py or _tensor_docs.py, and execute some commands (like ``python setup.py evolve``) to install the latest version, the description about the function we just changed is not updated.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/150391
Approved by: https://github.com/Skylion007, https://github.com/peterbell10
This commit is contained in:
FFFrog 2025-04-03 16:11:32 +08:00 committed by PyTorch MergeBot
parent 781d28e265
commit 70b34a42c1

View File

@ -251,6 +251,8 @@ add_custom_command(
"${TORCH_ROOT}/aten/src/ATen/native/native_functions.yaml"
"${TORCH_ROOT}/aten/src/ATen/native/tags.yaml"
"${TORCH_ROOT}/tools/autograd/deprecated.yaml"
"${TORCH_ROOT}/torch/_torch_docs.py"
"${TORCH_ROOT}/torch/_tensor_docs.py"
${pyi_python}
${autograd_python}
${torchgen_python}