diff options
author | Adam Paszke <adam.paszke@gmail.com> | 2016-08-02 09:19:18 -0700 |
---|---|---|
committer | Adam Paszke <adam.paszke@gmail.com> | 2016-08-02 09:20:18 -0700 |
commit | 92e983a489785d394f3f28f0d13e015299fc2e28 (patch) | |
tree | 002f94622fec89f16b64bb69b702bff309467ead /torch/csrc/Module.h | |
parent | 956625dbc55676b66cc8db7e209332c131e9a4cb (diff) | |
download | pytorch-92e983a489785d394f3f28f0d13e015299fc2e28.tar.gz pytorch-92e983a489785d394f3f28f0d13e015299fc2e28.tar.bz2 pytorch-92e983a489785d394f3f28f0d13e015299fc2e28.zip |
Fixes for Linux and new cutorch
Diffstat (limited to 'torch/csrc/Module.h')
-rw-r--r-- | torch/csrc/Module.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/torch/csrc/Module.h b/torch/csrc/Module.h index e0432e4d7d..950a1cc2f7 100644 --- a/torch/csrc/Module.h +++ b/torch/csrc/Module.h @@ -4,6 +4,6 @@ extern THPGenerator *THPDefaultGenerator; bool THPModule_tensorCopy(PyObject *dst, PyObject *src); -static const char *STATELESS_ATTRIBUTE_NAME = "_torch"; +#define STATELESS_ATTRIBUTE_NAME "_torch" #endif |