diff --git a/.gitignore b/.gitignore index 2a86ba6a243ddb..65ce7ab8da9490 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,6 @@ dist/ torch.egg-info/ */**/__pycache__ torch/csrc/generic/TensorMethods.cpp -torch/csrc/TensorDocstrings.cpp -torch/csrc/TensorDocstrings.h torch/lib/*.so* torch/lib/*.dylib* torch/lib/*.h diff --git a/setup.py b/setup.py index 9e14dc13476828..95a8147aca2305 100644 --- a/setup.py +++ b/setup.py @@ -102,10 +102,6 @@ def run(self): BoolOption(), thp_plugin, AutoGPU(condition='IS_CUDA'), ArgcountSortPlugin(), KwargsPlugin() ]) - with open('torch/csrc/TensorDocstrings.cpp', 'w') as f: - f.write(thp_plugin.generate_docstrings_cpp()) - with open('torch/csrc/TensorDocstrings.h', 'w') as f: - f.write(thp_plugin.generate_docstrings_h()) cwrap('torch/csrc/cudnn/cuDNN.cwrap', plugins=[ CuDNNPlugin(), NullableArguments() ]) @@ -192,7 +188,6 @@ def run(self): "torch/csrc/Size.cpp", "torch/csrc/Exceptions.cpp", "torch/csrc/Tensor.cpp", - "torch/csrc/TensorDocstrings.cpp", "torch/csrc/Storage.cpp", "torch/csrc/byte_order.cpp", "torch/csrc/utils.cpp", diff --git a/torch/csrc/Module.cpp b/torch/csrc/Module.cpp index 9a5f869b2e54c9..633a01ab4fdb38 100644 --- a/torch/csrc/Module.cpp +++ b/torch/csrc/Module.cpp @@ -11,8 +11,6 @@ #include "cudnn/Module.h" #endif -#include "TensorDocstrings.h" - #define WITH_NUMPY_IMPORT_ARRAY #include "THP.h" diff --git a/torch/csrc/Tensor.cpp b/torch/csrc/Tensor.cpp index 7c30e0a81f392d..7b53d77da468c7 100644 --- a/torch/csrc/Tensor.cpp +++ b/torch/csrc/Tensor.cpp @@ -10,7 +10,5 @@ #include "THP.h" #include "copy_utils.h" -#include "TensorDocstrings.h" - #include "generic/Tensor.cpp" #include