/usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc
NameSizeModeActions
api/-0755rm
autograd/-0755rm
cuda/-0755rm
jit/-0755rm
onnx/-0755rm
tensor/-0755rm
utils/-0755rm
copy_utils.h26580644editdlrm
CudaIPCTypes.h34440644editdlrm
DataLoader.h2220644editdlrm
Device.h5000644editdlrm
Dtype.h7750644editdlrm
DynamicTypes.h10030644editdlrm
Exceptions.h146780644editdlrm
Generator.h9340644editdlrm
Layout.h5400644editdlrm
MemoryFormat.h6260644editdlrm
Module.h1010644editdlrm
PythonTypes.h2960644editdlrm
python_dimname.h2140644editdlrm
python_headers.h5020644editdlrm
QScheme.h5610644editdlrm
serialization.h7090644editdlrm
Size.h3700644editdlrm
Storage.h31780644editdlrm
StorageDefs.h730644editdlrm
Stream.h3740644editdlrm
THP.h13080644editdlrm
THP_export.h3410644editdlrm
TypeInfo.h4980644editdlrm
Types.h2900644editdlrm
utils.h100320644editdlrm
WindowsTorchApiMacro.h1330644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/python_headers.h (502B)
#pragma once #include // workaround for Python 2 issue: https://bugs.python.org/issue17120 // NOTE: It looks like this affects Python 3 as well. #pragma push_macro("_XOPEN_SOURCE") #pragma push_macro("_POSIX_C_SOURCE") #undef _XOPEN_SOURCE #undef _POSIX_C_SOURCE #include #include #pragma pop_macro("_XOPEN_SOURCE") #pragma pop_macro("_POSIX_C_SOURCE") #if PY_MAJOR_VERSION < 3 #error "Python 2 has reached end-of-life and is no longer supported by PyTorch." #endif