Skip to content

Commit

Permalink
Remove unused file TensorDocstrings.cpp (pytorch#481)
Browse files Browse the repository at this point in the history
Tensor docstrings are created in _tensor_docs.py
  • Loading branch information
colesbury authored Jan 18, 2017
1 parent ac8a5e7 commit 9302f86
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
])
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions torch/csrc/Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#include "cudnn/Module.h"
#endif

#include "TensorDocstrings.h"

#define WITH_NUMPY_IMPORT_ARRAY
#include "THP.h"

Expand Down
2 changes: 0 additions & 2 deletions torch/csrc/Tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@
#include "THP.h"
#include "copy_utils.h"

#include "TensorDocstrings.h"

#include "generic/Tensor.cpp"
#include <TH/THGenerateAllTypes.h>

0 comments on commit 9302f86

Please sign in to comment.