cathywu / rllab

rllab is a framework for developing and evaluating reinforcement learning algorithms, fully compatible with OpenAI Gym.
Other
1 stars 0 forks source link

Mysterious theano issue #7

Closed cathywu closed 7 years ago

cathywu commented 7 years ago

My implementation was working before (running locally, with local_docker, and on ec2), and now it doesn't work. Strange thing is: it still runs with LinearFeaturesBaseline and ActionDependentLinearFeaturesBaseline, but not GaussianMLPBaseline or ActionDependentGaussianMLPBaseline. It seems to be an issue with Theano?

Command not working:

python3 examples/cluster_walker_tf_comparison.py

I get this dump of errors, which I'm not sure how to make sense of. I've already tried (without success) deleting the Theano lock file and deleting the entire Theano lock directory. I have also reverted all our changes during our meeting on Tuesday (removing Parameterized, Baseline from the inheritance list for the action dependent baseline, etc.).

===============================
00001   #include <Python.h>
00002   #include <iostream>
00003   #include "theano_mod_helper.h"
00004   #include <math.h>
00005   #include <numpy/arrayobject.h>
00006   #include <numpy/arrayscalars.h>
00007   //////////////////////
00008   ////  Support Code
00009   //////////////////////
00010
00011
00012       namespace {
00013       struct __struct_compiled_op_mdb219947724f79219f7dbd36f0f52c77 {
00014           PyObject* __ERROR;
00015
00016           PyObject* storage_V3;
00017   PyObject* storage_V1;
00018
00019
00020           __struct_compiled_op_mdb219947724f79219f7dbd36f0f52c77() {
00021               // This is only somewhat safe because we:
00022               //  1) Are not a virtual class
00023               //  2) Do not use any virtual classes in the members
00024               //  3) Deal with mostly POD and pointers
00025
00026               // If this changes, we would have to revise this, but for
00027               // now I am tired of chasing segfaults because
00028               // initialization code had an error and some pointer has
00029               // a junk value.
00030               memset(this, 0, sizeof(*this));
00031           }
00032           ~__struct_compiled_op_mdb219947724f79219f7dbd36f0f52c77(void) {
00033               cleanup();
00034           }
00035
00036           int init(PyObject* __ERROR, PyObject* storage_V3, PyObject* storage_V1) {
00037               Py_XINCREF(storage_V3);
00038   Py_XINCREF(storage_V1);
00039               this->storage_V3 = storage_V3;
00040   this->storage_V1 = storage_V1;
00041
00042
00043
00044
00045               this->__ERROR = __ERROR;
00046               return 0;
00047           }
00048           void cleanup(void) {
00049               __label_1:
00050
00051   double __DUMMY_1;
00052   __label_3:
00053
00054   double __DUMMY_3;
00055   __label_6:
00056
00057   double __DUMMY_6;
00058
00059               Py_XDECREF(this->storage_V3);
00060   Py_XDECREF(this->storage_V1);
00061           }
00062           int run(void) {
00063               int __failure = 0;
00064
00065       PyObject* py_V1;
00066
00067           PyArrayObject* V1;
00068
00069       PyObject* py_V3;
00070
00071           PyArrayObject* V3;
00072
00073   {
00074
00075       py_V1 = PyList_GET_ITEM(storage_V1, 0);
00076       {Py_XINCREF(py_V1);}
00077
00078           if (py_V1 == Py_None)
00079           {
00080
00081           V1 = NULL;
00082
00083           }
00084           else
00085           {
00086
00087           V1 = (PyArrayObject*)(py_V1);
00088           Py_XINCREF(V1);
00089
00090           }
00091
00092   {
00093
00094       py_V3 = PyList_GET_ITEM(storage_V3, 0);
00095       {Py_XINCREF(py_V3);}
00096
00097           V3 = (PyArrayObject*)(py_V3);
00098           Py_XINCREF(V3);
00099
00100   {
00101   // Op class DimShuffle
00102   if (PyArray_NDIM(V3) != 0){PyErr_SetString(PyExc_NotImplementedError, "input nd"); {
00103           __failure = 5;
00104           if (!PyErr_Occurred()) {
00105               PyErr_SetString(PyExc_RuntimeError,
00106                   "Unexpected error in an Op's C code. "
00107                   "No Python exception was set.");
00108               }
00109           goto __label_5;};};
00110   if (V1) {Py_XDECREF(V1);};
00111   { PyArrayObject * V3__view_or_copy = (PyArrayObject*)PyArray_FromAny((PyObject*)V3, NULL, 0, 0, NPY_ARRAY_ALIGNED|NPY_ARRAY_ENSURECOPY, NULL);
00112   npy_intp dimensions[2];
00113   dimensions[0] = 1;
00114   dimensions[1] = 1;
00115   npy_intp strides[2];
00116   strides[0] = 0;
00117   strides[1] = 0;
00118   if (strides[2-1] == 0) strides[2-1] = PyArray_DESCR(V3__view_or_copy)->elsize;
00119   if (strides[0] == 0) strides[0] = strides[0+1] * dimensions[0+1];
00120   V1 = (PyArrayObject*)PyArray_New(&PyArray_Type, 2, dimensions, PyArray_TYPE(V3__view_or_copy), strides, PyArray_DATA(V3__view_or_copy), PyArray_ITEMSIZE(V3__view_or_copy), (NPY_ARRAY_WRITEABLE*PyArray_ISWRITEABLE(V3__view_or_copy)), NULL);
00121   if (V1 == NULL) {
00122           __failure = 5;
00123           if (!PyErr_Occurred()) {
00124               PyErr_SetString(PyExc_RuntimeError,
00125                   "Unexpected error in an Op's C code. "
00126                   "No Python exception was set.");
00127               }
00128           goto __label_5;};;
00129   PyArray_UpdateFlags(V1, NPY_ARRAY_UPDATE_ALL);
00130
00131   #if NPY_API_VERSION < 0x00000007
00132   PyArray_BASE(V1) = (PyObject*)V3__view_or_copy;
00133   #else
00134   PyArray_SetBaseObject(V1, (PyObject*)V3__view_or_copy);
00135   #endif
00136   };__label_5:
00137
00138   double __DUMMY_5;
00139
00140   }
00141   __label_4:
00142
00143           if (V3) {
00144               Py_XDECREF(V3);
00145           }
00146
00147       {Py_XDECREF(py_V3);}
00148
00149   double __DUMMY_4;
00150
00151   }
00152   __label_2:
00153
00154       if (!__failure) {
00155
00156           {Py_XDECREF(py_V1);}
00157           if (!V1) {
00158               Py_INCREF(Py_None);
00159               py_V1 = Py_None;
00160           }
00161           else if ((void*)py_V1 != (void*)V1) {
00162               py_V1 = (PyObject*)V1;
00163           }
00164
00165           {Py_XINCREF(py_V1);}
00166
00167           if (V1 && !PyArray_ISALIGNED((PyArrayObject*) py_V1)) {
00168               PyErr_Format(PyExc_NotImplementedError,
00169                            "c_sync: expected an aligned array, got non-aligned array of type %ld"
00170                            " with %ld dimensions, with 3 last dims "
00171                            "%ld, %ld, %ld"
00172                            " and 3 last strides %ld %ld, %ld.",
00173                            (long int) PyArray_TYPE((PyArrayObject*) py_V1),
00174                            (long int) PyArray_NDIM(V1),
00175                            (long int) PyArray_NDIM(V1) >= 3 ?
00176           PyArray_DIMS(V1)[PyArray_NDIM(V1)-3] : -1,
00177                            (long int) PyArray_NDIM(V1) >= 2 ?
00178           PyArray_DIMS(V1)[PyArray_NDIM(V1)-2] : -1,
00179                            (long int) PyArray_NDIM(V1) >= 1 ?
00180           PyArray_DIMS(V1)[PyArray_NDIM(V1)-1] : -1,
00181                            (long int) PyArray_NDIM(V1) >= 3 ?
00182           PyArray_STRIDES(V1)[PyArray_NDIM(V1)-3] : -1,
00183                            (long int) PyArray_NDIM(V1) >= 2 ?
00184           PyArray_STRIDES(V1)[PyArray_NDIM(V1)-2] : -1,
00185                            (long int) PyArray_NDIM(V1) >= 1 ?
00186           PyArray_STRIDES(V1)[PyArray_NDIM(V1)-1] : -1
00187           );
00188               {
00189           __failure = 2;
00190           if (!PyErr_Occurred()) {
00191               PyErr_SetString(PyExc_RuntimeError,
00192                   "Unexpected error in an Op's C code. "
00193                   "No Python exception was set.");
00194               }
00195           goto __label_2;}
00196           }
00197
00198         PyObject* old = PyList_GET_ITEM(storage_V1, 0);
00199         {Py_XINCREF(py_V1);}
00200         PyList_SET_ITEM(storage_V1, 0, py_V1);
00201         {Py_XDECREF(old);}
00202       }
00203
00204           if (V1) {
00205               Py_XDECREF(V1);
00206           }
00207
00208       {Py_XDECREF(py_V1);}
00209
00210   double __DUMMY_2;
00211
00212   }
00213
00214
00215           if (__failure) {
00216               // When there is a failure, this code puts the exception
00217               // in __ERROR.
00218               PyObject* err_type = NULL;
00219               PyObject* err_msg = NULL;
00220               PyObject* err_traceback = NULL;
00221               PyErr_Fetch(&err_type, &err_msg, &err_traceback);
00222               if (!err_type) {err_type = Py_None;Py_INCREF(Py_None);}
00223               if (!err_msg) {err_msg = Py_None; Py_INCREF(Py_None);}
00224               if (!err_traceback) {err_traceback = Py_None; Py_INCREF(Py_None);}
00225               PyObject* old_err_type = PyList_GET_ITEM(__ERROR, 0);
00226               PyObject* old_err_msg = PyList_GET_ITEM(__ERROR, 1);
00227               PyObject* old_err_traceback = PyList_GET_ITEM(__ERROR, 2);
00228               PyList_SET_ITEM(__ERROR, 0, err_type);
00229               PyList_SET_ITEM(__ERROR, 1, err_msg);
00230               PyList_SET_ITEM(__ERROR, 2, err_traceback);
00231               {Py_XDECREF(old_err_type);}
00232               {Py_XDECREF(old_err_msg);}
00233               {Py_XDECREF(old_err_traceback);}
00234           }
00235           // The failure code is returned to index what code block failed.
00236           return __failure;
00237
00238           }
00239       };
00240       }
00241
00242
00243           static int __struct_compiled_op_mdb219947724f79219f7dbd36f0f52c77_executor(__struct_compiled_op_mdb219947724f79219f7dbd36f0f52c77 *self) {
00244               return self->run();
00245           }
00246
00247           static void __struct_compiled_op_mdb219947724f79219f7dbd36f0f52c77_destructor(PyObject *capsule) {
00248               __struct_compiled_op_mdb219947724f79219f7dbd36f0f52c77 *self = (__struct_compiled_op_mdb219947724f79219f7dbd36f0f52c77 *)PyCapsule_GetContext(capsule);
00249               delete self;
00250           }
00251
00252   //////////////////////
00253   ////  Functions
00254   //////////////////////
00255   static PyObject * instantiate(PyObject * self, PyObject *argtuple) {
00256     assert(PyTuple_Check(argtuple));
00257     if (3 != PyTuple_Size(argtuple)){
00258        PyErr_Format(PyExc_TypeError, "Wrong number of arguments, expected 3, got %i", (int)PyTuple_Size(argtuple));
00259        return NULL;
00260     }
00261     __struct_compiled_op_mdb219947724f79219f7dbd36f0f52c77* struct_ptr = new __struct_compiled_op_mdb219947724f79219f7dbd36f0f52c77();
00262     if (struct_ptr->init( PyTuple_GET_ITEM(argtuple, 0),PyTuple_GET_ITEM(argtuple, 1),PyTuple_GET_ITEM(argtuple, 2) ) != 0) {
00263       delete struct_ptr;
00264       return NULL;
00265     }
00266       PyObject* thunk = PyCapsule_New((void*)(&__struct_compiled_op_mdb219947724f79219f7dbd36f0f52c77_executor), NULL, __struct_compiled_op_mdb219947724f79219f7dbd36f0f52c77_destructor);
00267       if (thunk != NULL && PyCapsule_SetContext(thunk, struct_ptr) != 0) {
00268           PyErr_Clear();
00269           Py_DECREF(thunk);
00270           thunk = NULL;
00271       }
00272
00273     return thunk; }
00274
00275   //////////////////////
00276   ////  Module init
00277   //////////////////////
00278   static PyMethodDef MyMethods[] = {
00279       {"instantiate", instantiate, METH_VARARGS, "undocumented"} ,
00280       {NULL, NULL, 0, NULL}
00281   };
00282   static struct PyModuleDef moduledef = {
00283         PyModuleDef_HEAD_INIT,
00284         "mdb219947724f79219f7dbd36f0f52c77",
00285         NULL,
00286         -1,
00287         MyMethods,
00288   };
00289
00290   PyMODINIT_FUNC PyInit_mdb219947724f79219f7dbd36f0f52c77(void) {
00291      import_array();
00292       PyObject *m = PyModule_Create(&moduledef);
00293       return m;
00294   }
00295
===============================
Problem occurred during compilation with the command line below:
/usr/local/bin/clang++ -dynamiclib -g -O3 -fno-math-errno -Wno-unused-label -Wno-unused-variable -Wno-write-strings -march=broadwell -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -fPIC -undefined dynamic_lookup -I/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/numpy/core/include -I/Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m -I/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof -fvisibility=hidden -o /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mdb219947724f79219f7dbd36f0f52c77.so /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp -L/Users/cathywu/anaconda/envs/rllabcathywu/lib
In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:468:15: error: C++ requires a type specifier for all declarations
    char_type toupper(char_type __c) const
              ^
/Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:706:29: note: expanded from macro 'toupper'
#define toupper(c) towupper(btowc(c))
                            ^
In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:474:48: error: too many arguments provided to function-like macro invocation
    const char_type* toupper(char_type* __low, const char_type* __high) const
                                               ^
/Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:706:9: note: macro 'toupper' defined here
#define toupper(c) towupper(btowc(c))
        ^
In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:474:29: error: expected ';' at end of declaration list
    const char_type* toupper(char_type* __low, const char_type* __high) const
                            ^
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:486:48: error: too many arguments provided to function-like macro invocation
    const char_type* tolower(char_type* __low, const char_type* __high) const
                                               ^
/Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:704:9: note: macro 'tolower' defined here
#define tolower(c) towlower(btowc(c))
        ^
In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:470:27: error: use of undeclared identifier '__c'
        return do_toupper(__c);
                          ^
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:577:15: error: C++ requires a type specifier for all declarations
    char_type toupper(char_type __c) const
              ^
/Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:706:29: note: expanded from macro 'toupper'
#define toupper(c) towupper(btowc(c))
                            ^
In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:583:48: error: too many arguments provided to function-like macro invocation
    const char_type* toupper(char_type* __low, const char_type* __high) const
                                               ^
/Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:706:9: note: macro 'toupper' defined here
#define toupper(c) towupper(btowc(c))
        ^
In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:583:29: error: expected ';' at end of declaration list
    const char_type* toupper(char_type* __low, const char_type* __high) const
                            ^
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:595:48: error: too many arguments provided to function-like macro invocation
    const char_type* tolower(char_type* __low, const char_type* __high) const
                                               ^
/Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:704:9: note: macro 'tolower' defined here
#define tolower(c) towlower(btowc(c))
        ^
In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:579:27: error: use of undeclared identifier '__c'
        return do_toupper(__c);
                          ^
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:705:21: error: too many arguments provided to function-like macro invocation
isspace(_CharT __c, const locale& __loc)
                    ^
/Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:700:9: note: macro 'isspace' defined here
#define isspace(c) iswspace(btowc(c))
        ^
In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:703:1: error: 'inline' can only appear on functions
inline _LIBCPP_INLINE_VISIBILITY
^
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:705:1: error: declaration conflicts with target of using declaration already in scope
isspace(_CharT __c, const locale& __loc)
^
/usr/include/ctype.h:267:1: note: target of using declaration
isspace(int _c)
^
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/cctype:56:9: note: using declaration
using ::isspace;
        ^
In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:705:8: error: expected ';' at end of declaration
isspace(_CharT __c, const locale& __loc)
       ^
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:706:1: error: expected unqualified-id
{
^
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:729:21: error: too many arguments provided to function-like macro invocation
isupper(_CharT __c, const locale& __loc)
                    ^
/Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:702:9: note: macro 'isupper' defined here
#define isupper(c) iswupper(btowc(c))
        ^
In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:727:1: error: 'inline' can only appear on functions
inline _LIBCPP_INLINE_VISIBILITY
^
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:729:1: error: declaration conflicts with target of using declaration already in scope
isupper(_CharT __c, const locale& __loc)
^
/usr/include/ctype.h:273:1: note: target of using declaration
isupper(int _c)
^
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/cctype:57:9: note: using declaration
using ::isupper;
        ^
In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:
In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:
/usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:729:8: error: expected ';' at end of declaration
isupper(_CharT __c, const locale& __loc)
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

ERROR (theano.gof.opt): Optimization failure due to: constant_folding
[2017-04-20 20:52:22,067] Optimization failure due to: constant_folding
ERROR (theano.gof.opt): node: DimShuffle{x,x}(TensorConstant{0.5})
[2017-04-20 20:52:22,068] node: DimShuffle{x,x}(TensorConstant{0.5})
ERROR (theano.gof.opt): TRACEBACK:
[2017-04-20 20:52:22,068] TRACEBACK:
ERROR (theano.gof.opt): Traceback (most recent call last):
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/cmd.py", line 214, in onecmd
    func = getattr(self, 'do_' + cmd)
AttributeError: 'TerminalPdb' object has no attribute 'do_B'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/opt.py", line 1820, in process_node
    replacements = lopt.transform(node)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/tensor/opt.py", line 6054, in constant_folding
    no_recycling=[])
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/op.py", line 969, in make_thunk
    no_recycling)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/op.py", line 872, in make_c_thunk
    output_storage=node_output_storage)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/cc.py", line 1200, in make_thunk
    keep_lock=keep_lock)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/cc.py", line 1143, in __compile__
    keep_lock=keep_lock)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/cc.py", line 1591, in cthunk_factory
    key=key, lnk=self, keep_lock=keep_lock)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/cmodule.py", line 1145, in module_from_key
    module = lnk.compile_cmodule(location)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/cc.py", line 1502, in compile_cmodule
    preargs=preargs)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/cmodule.py", line 2282, in compile_str
    (status, compile_stderr.replace('\n', '. ')))
Exception: ("Compilation failed (return status=1): In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:468:15: error: C++ requires a type specifier for all declarations.     char_type toupper(char_type __c) const.               ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:706:29: note: expanded from macro 'toupper'. #define toupper(c) towupper(btowc(c)).                             ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:474:48: error: too many arguments provided to function-like macro invocation.     const char_type* toupper(char_type* __low, const char_type* __high) const.                                                ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:706:9: note: macro 'toupper' defined here. #define toupper(c) towupper(btowc(c)).         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:474:29: error: expected ';' at end of declaration list.     const char_type* toupper(char_type* __low, const char_type* __high) const.                             ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:486:48: error: too many arguments provided to function-like macro invocation.     const char_type* tolower(char_type* __low, const char_type* __high) const.                                                ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:704:9: note: macro 'tolower' defined here. #define tolower(c) towlower(btowc(c)).         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:470:27: error: use of undeclared identifier '__c'.         return do_toupper(__c);.                           ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:577:15: error: C++ requires a type specifier for all declarations.     char_type toupper(char_type __c) const.               ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:706:29: note: expanded from macro 'toupper'. #define toupper(c) towupper(btowc(c)).                             ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:583:48: error: too many arguments provided to function-like macro invocation.     const char_type* toupper(char_type* __low, const char_type* __high) const.                                                ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:706:9: note: macro 'toupper' defined here. #define toupper(c) towupper(btowc(c)).         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:583:29: error: expected ';' at end of declaration list.     const char_type* toupper(char_type* __low, const char_type* __high) const.                             ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:595:48: error: too many arguments provided to function-like macro invocation.     const char_type* tolower(char_type* __low, const char_type* __high) const.                                                ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:704:9: note: macro 'tolower' defined here. #define tolower(c) towlower(btowc(c)).         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:579:27: error: use of undeclared identifier '__c'.         return do_toupper(__c);.                           ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:705:21: error: too many arguments provided to function-like macro invocation. isspace(_CharT __c, const locale& __loc).                     ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:700:9: note: macro 'isspace' defined here. #define isspace(c) iswspace(btowc(c)).         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:703:1: error: 'inline' can only appear on functions. inline _LIBCPP_INLINE_VISIBILITY. ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:705:1: error: declaration conflicts with target of using declaration already in scope. isspace(_CharT __c, const locale& __loc). ^. /usr/include/ctype.h:267:1: note: target of using declaration. isspace(int _c). ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/cctype:56:9: note: using declaration. using ::isspace;.         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:705:8: error: expected ';' at end of declaration. isspace(_CharT __c, const locale& __loc).        ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:706:1: error: expected unqualified-id. {. ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:729:21: error: too many arguments provided to function-like macro invocation. isupper(_CharT __c, const locale& __loc).                     ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:702:9: note: macro 'isupper' defined here. #define isupper(c) iswupper(btowc(c)).         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:727:1: error: 'inline' can only appear on functions. inline _LIBCPP_INLINE_VISIBILITY. ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:729:1: error: declaration conflicts with target of using declaration already in scope. isupper(_CharT __c, const locale& __loc). ^. /usr/include/ctype.h:273:1: note: target of using declaration. isupper(int _c). ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/cctype:57:9: note: using declaration. using ::isupper;.         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:729:8: error: expected ';' at end of declaration. isupper(_CharT __c, const locale& __loc).        ^. fatal error: too many errors emitted, stopping now [-ferror-limit=]. 20 errors generated.. ", '[DimShuffle{x,x}(TensorConstant{0.5})]')

[2017-04-20 20:52:22,069] Traceback (most recent call last):
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/cmd.py", line 214, in onecmd
    func = getattr(self, 'do_' + cmd)
AttributeError: 'TerminalPdb' object has no attribute 'do_B'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/opt.py", line 1820, in process_node
    replacements = lopt.transform(node)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/tensor/opt.py", line 6054, in constant_folding
    no_recycling=[])
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/op.py", line 969, in make_thunk
    no_recycling)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/op.py", line 872, in make_c_thunk
    output_storage=node_output_storage)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/cc.py", line 1200, in make_thunk
    keep_lock=keep_lock)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/cc.py", line 1143, in __compile__
    keep_lock=keep_lock)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/cc.py", line 1591, in cthunk_factory
    key=key, lnk=self, keep_lock=keep_lock)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/cmodule.py", line 1145, in module_from_key
    module = lnk.compile_cmodule(location)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/cc.py", line 1502, in compile_cmodule
    preargs=preargs)
  File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/theano/gof/cmodule.py", line 2282, in compile_str
    (status, compile_stderr.replace('\n', '. ')))
Exception: ("Compilation failed (return status=1): In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:468:15: error: C++ requires a type specifier for all declarations.     char_type toupper(char_type __c) const.               ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:706:29: note: expanded from macro 'toupper'. #define toupper(c) towupper(btowc(c)).                             ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:474:48: error: too many arguments provided to function-like macro invocation.     const char_type* toupper(char_type* __low, const char_type* __high) const.                                                ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:706:9: note: macro 'toupper' defined here. #define toupper(c) towupper(btowc(c)).         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:474:29: error: expected ';' at end of declaration list.     const char_type* toupper(char_type* __low, const char_type* __high) const.                             ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:486:48: error: too many arguments provided to function-like macro invocation.     const char_type* tolower(char_type* __low, const char_type* __high) const.                                                ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:704:9: note: macro 'tolower' defined here. #define tolower(c) towlower(btowc(c)).         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:470:27: error: use of undeclared identifier '__c'.         return do_toupper(__c);.                           ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:577:15: error: C++ requires a type specifier for all declarations.     char_type toupper(char_type __c) const.               ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:706:29: note: expanded from macro 'toupper'. #define toupper(c) towupper(btowc(c)).                             ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:583:48: error: too many arguments provided to function-like macro invocation.     const char_type* toupper(char_type* __low, const char_type* __high) const.                                                ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:706:9: note: macro 'toupper' defined here. #define toupper(c) towupper(btowc(c)).         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:583:29: error: expected ';' at end of declaration list.     const char_type* toupper(char_type* __low, const char_type* __high) const.                             ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:595:48: error: too many arguments provided to function-like macro invocation.     const char_type* tolower(char_type* __low, const char_type* __high) const.                                                ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:704:9: note: macro 'tolower' defined here. #define tolower(c) towlower(btowc(c)).         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:579:27: error: use of undeclared identifier '__c'.         return do_toupper(__c);.                           ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:705:21: error: too many arguments provided to function-like macro invocation. isspace(_CharT __c, const locale& __loc).                     ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:700:9: note: macro 'isspace' defined here. #define isspace(c) iswspace(btowc(c)).         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:703:1: error: 'inline' can only appear on functions. inline _LIBCPP_INLINE_VISIBILITY. ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:705:1: error: declaration conflicts with target of using declaration already in scope. isspace(_CharT __c, const locale& __loc). ^. /usr/include/ctype.h:267:1: note: target of using declaration. isspace(int _c). ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/cctype:56:9: note: using declaration. using ::isspace;.         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:705:8: error: expected ';' at end of declaration. isspace(_CharT __c, const locale& __loc).        ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:706:1: error: expected unqualified-id. {. ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:729:21: error: too many arguments provided to function-like macro invocation. isupper(_CharT __c, const locale& __loc).                     ^. /Users/cathywu/anaconda/envs/rllabcathywu/include/python3.5m/pyport.h:702:9: note: macro 'isupper' defined here. #define isupper(c) iswupper(btowc(c)).         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:727:1: error: 'inline' can only appear on functions. inline _LIBCPP_INLINE_VISIBILITY. ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:729:1: error: declaration conflicts with target of using declaration already in scope. isupper(_CharT __c, const locale& __loc). ^. /usr/include/ctype.h:273:1: note: target of using declaration. isupper(int _c). ^. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/cctype:57:9: note: using declaration. using ::isupper;.         ^. In file included from /Users/cathywu/.theano/compiledir_Darwin-15.5.0-x86_64-i386-64bit-i386-3.5.2-64/tmprmsto1rt/mod.cpp:2:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/iostream:38:. In file included from /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/ios:216:. /usr/local/Cellar/llvm/3.8.1/bin/../include/c++/v1/__locale:729:8: error: expected ';' at end of declaration. isupper(_CharT __c, const locale& __loc).        ^. fatal error: too many errors emitted, stopping now [-ferror-limit=]. 20 errors generated.. ", '[DimShuffle{x,x}(TensorConstant{0.5})]')
cathywu commented 7 years ago

Works in local_docker mode, but not local mode.