=============================== 1 #include 2 #include 3 #include "theano_mod_helper.h" 4 #include 5 #include 6 #include 7 #include 8 #include 9 ////////////////////// 10 //// Support Code 11 ////////////////////// 12 13 namespace { 14 struct __struct_compiled_op_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d { 15 PyObject* __ERROR; 16 17 PyObject* storage_V5; 18 PyObject* storage_V3; 19 PyObject* storage_V1; 20 21 22 __struct_compiled_op_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d() { 23 // This is only somewhat safe because we: 24 // 1) Are not a virtual class 25 // 2) Do not use any virtual classes in the members 26 // 3) Deal with mostly POD and pointers 27 28 // If this changes, we would have to revise this, but for 29 // now I am tired of chasing segfaults because 30 // initialization code had an error and some pointer has 31 // a junk value. 32 #ifndef THEANO_DONT_MEMSET_STRUCT 33 memset(this, 0, sizeof(*this)); 34 #endif 35 } 36 ~__struct_compiled_op_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d(void) { 37 cleanup(); 38 } 39 40 int init(PyObject* __ERROR, PyObject* storage_V5, PyObject* storage_V3, PyObject* storage_V1) { 41 Py_XINCREF(storage_V5); 42 Py_XINCREF(storage_V3); 43 Py_XINCREF(storage_V1); 44 this->storage_V5 = storage_V5; 45 this->storage_V3 = storage_V3; 46 this->storage_V1 = storage_V1; 47 48 49 50 51 52 this->__ERROR = __ERROR; 53 return 0; 54 } 55 void cleanup(void) { 56 __label_1: 57 58 double __DUMMY_1; 59 __label_3: 60 61 double __DUMMY_3; 62 __label_5: 63 64 double __DUMMY_5; 65 __label_8: 66 67 double __DUMMY_8; 68 69 Py_XDECREF(this->storage_V5); 70 Py_XDECREF(this->storage_V3); 71 Py_XDECREF(this->storage_V1); 72 } 73 int run(void) { 74 int __failure = 0; 75 76 PyObject* py_V1; 77 78 PyArrayObject* V1; 79 80 typedef npy_float64 dtype_V1; 81 82 PyObject* py_V3; 83 84 PyArrayObject* V3; 85 86 typedef npy_float64 dtype_V3; 87 88 PyObject* py_V5; 89 90 PyArrayObject* V5; 91 92 typedef npy_float32 dtype_V5; 93 94 { 95 96 py_V1 = PyList_GET_ITEM(storage_V1, 0); 97 {Py_XINCREF(py_V1);} 98 99 if (py_V1 == Py_None) 100 { 101 102 V1 = NULL; 103 104 } 105 else 106 { 107 108 V1 = NULL; 109 if (py_V1 == Py_None) { 110 // We can either fail here or set V1 to NULL and rely on Ops 111 // using tensors to handle the NULL case, but if they fail to do so 112 // they'll end up with nasty segfaults, so this is public service. 113 PyErr_SetString(PyExc_ValueError, "expected an ndarray, not None"); 114 { 115 __failure = 2; 116 if (!PyErr_Occurred()) { 117 PyErr_SetString(PyExc_RuntimeError, 118 "Unexpected error in an Op's C code. " 119 "No Python exception was set."); 120 } 121 goto __label_2;} 122 } 123 if (!PyArray_Check(py_V1)) { 124 PyErr_SetString(PyExc_ValueError, "expected an ndarray"); 125 { 126 __failure = 2; 127 if (!PyErr_Occurred()) { 128 PyErr_SetString(PyExc_RuntimeError, 129 "Unexpected error in an Op's C code. " 130 "No Python exception was set."); 131 } 132 goto __label_2;} 133 } 134 // We expect NPY_FLOAT64 135 if (!PyArray_ISALIGNED((PyArrayObject*) py_V1)) { 136 PyArrayObject * tmp = (PyArrayObject*) py_V1; 137 PyErr_Format(PyExc_NotImplementedError, 138 "expected an aligned array of type %ld " 139 "(NPY_FLOAT64), got non-aligned array of type %ld" 140 " with %ld dimensions, with 3 last dims " 141 "%ld, %ld, %ld" 142 " and 3 last strides %ld %ld, %ld.", 143 (long int) NPY_FLOAT64, 144 (long int) PyArray_TYPE((PyArrayObject*) py_V1), 145 (long int) PyArray_NDIM(tmp), 146 (long int) (PyArray_NDIM(tmp) >= 3 ? 147 PyArray_DIMS(tmp)[PyArray_NDIM(tmp)-3] : -1), 148 (long int) (PyArray_NDIM(tmp) >= 2 ? 149 PyArray_DIMS(tmp)[PyArray_NDIM(tmp)-2] : -1), 150 (long int) (PyArray_NDIM(tmp) >= 1 ? 151 PyArray_DIMS(tmp)[PyArray_NDIM(tmp)-1] : -1), 152 (long int) (PyArray_NDIM(tmp) >= 3 ? 153 PyArray_STRIDES(tmp)[PyArray_NDIM(tmp)-3] : -1), 154 (long int) (PyArray_NDIM(tmp) >= 2 ? 155 PyArray_STRIDES(tmp)[PyArray_NDIM(tmp)-2] : -1), 156 (long int) (PyArray_NDIM(tmp) >= 1 ? 157 PyArray_STRIDES(tmp)[PyArray_NDIM(tmp)-1] : -1) 158 ); 159 { 160 __failure = 2; 161 if (!PyErr_Occurred()) { 162 PyErr_SetString(PyExc_RuntimeError, 163 "Unexpected error in an Op's C code. " 164 "No Python exception was set."); 165 } 166 goto __label_2;} 167 } 168 // This is a TypeError to be consistent with DEBUG_MODE 169 // Note: DEBUG_MODE also tells the name of the container 170 if (PyArray_TYPE((PyArrayObject*) py_V1) != NPY_FLOAT64) { 171 PyErr_Format(PyExc_TypeError, 172 "expected type_num %d (NPY_FLOAT64) got %d", 173 NPY_FLOAT64, PyArray_TYPE((PyArrayObject*) py_V1)); 174 { 175 __failure = 2; 176 if (!PyErr_Occurred()) { 177 PyErr_SetString(PyExc_RuntimeError, 178 "Unexpected error in an Op's C code. " 179 "No Python exception was set."); 180 } 181 goto __label_2;} 182 } 183 184 V1 = (PyArrayObject*)(py_V1); 185 Py_XINCREF(V1); 186 187 } 188 189 { 190 191 py_V3 = PyList_GET_ITEM(storage_V3, 0); 192 {Py_XINCREF(py_V3);} 193 194 V3 = NULL; 195 if (py_V3 == Py_None) { 196 // We can either fail here or set V3 to NULL and rely on Ops 197 // using tensors to handle the NULL case, but if they fail to do so 198 // they'll end up with nasty segfaults, so this is public service. 199 PyErr_SetString(PyExc_ValueError, "expected an ndarray, not None"); 200 { 201 __failure = 4; 202 if (!PyErr_Occurred()) { 203 PyErr_SetString(PyExc_RuntimeError, 204 "Unexpected error in an Op's C code. " 205 "No Python exception was set."); 206 } 207 goto __label_4;} 208 } 209 if (!PyArray_Check(py_V3)) { 210 PyErr_SetString(PyExc_ValueError, "expected an ndarray"); 211 { 212 __failure = 4; 213 if (!PyErr_Occurred()) { 214 PyErr_SetString(PyExc_RuntimeError, 215 "Unexpected error in an Op's C code. " 216 "No Python exception was set."); 217 } 218 goto __label_4;} 219 } 220 // We expect NPY_FLOAT64 221 if (!PyArray_ISALIGNED((PyArrayObject*) py_V3)) { 222 PyArrayObject * tmp = (PyArrayObject*) py_V3; 223 PyErr_Format(PyExc_NotImplementedError, 224 "expected an aligned array of type %ld " 225 "(NPY_FLOAT64), got non-aligned array of type %ld" 226 " with %ld dimensions, with 3 last dims " 227 "%ld, %ld, %ld" 228 " and 3 last strides %ld %ld, %ld.", 229 (long int) NPY_FLOAT64, 230 (long int) PyArray_TYPE((PyArrayObject*) py_V3), 231 (long int) PyArray_NDIM(tmp), 232 (long int) (PyArray_NDIM(tmp) >= 3 ? 233 PyArray_DIMS(tmp)[PyArray_NDIM(tmp)-3] : -1), 234 (long int) (PyArray_NDIM(tmp) >= 2 ? 235 PyArray_DIMS(tmp)[PyArray_NDIM(tmp)-2] : -1), 236 (long int) (PyArray_NDIM(tmp) >= 1 ? 237 PyArray_DIMS(tmp)[PyArray_NDIM(tmp)-1] : -1), 238 (long int) (PyArray_NDIM(tmp) >= 3 ? 239 PyArray_STRIDES(tmp)[PyArray_NDIM(tmp)-3] : -1), 240 (long int) (PyArray_NDIM(tmp) >= 2 ? 241 PyArray_STRIDES(tmp)[PyArray_NDIM(tmp)-2] : -1), 242 (long int) (PyArray_NDIM(tmp) >= 1 ? 243 PyArray_STRIDES(tmp)[PyArray_NDIM(tmp)-1] : -1) 244 ); 245 { 246 __failure = 4; 247 if (!PyErr_Occurred()) { 248 PyErr_SetString(PyExc_RuntimeError, 249 "Unexpected error in an Op's C code. " 250 "No Python exception was set."); 251 } 252 goto __label_4;} 253 } 254 // This is a TypeError to be consistent with DEBUG_MODE 255 // Note: DEBUG_MODE also tells the name of the container 256 if (PyArray_TYPE((PyArrayObject*) py_V3) != NPY_FLOAT64) { 257 PyErr_Format(PyExc_TypeError, 258 "expected type_num %d (NPY_FLOAT64) got %d", 259 NPY_FLOAT64, PyArray_TYPE((PyArrayObject*) py_V3)); 260 { 261 __failure = 4; 262 if (!PyErr_Occurred()) { 263 PyErr_SetString(PyExc_RuntimeError, 264 "Unexpected error in an Op's C code. " 265 "No Python exception was set."); 266 } 267 goto __label_4;} 268 } 269 270 V3 = (PyArrayObject*)(py_V3); 271 Py_XINCREF(V3); 272 273 { 274 275 py_V5 = PyList_GET_ITEM(storage_V5, 0); 276 {Py_XINCREF(py_V5);} 277 278 V5 = NULL; 279 if (py_V5 == Py_None) { 280 // We can either fail here or set V5 to NULL and rely on Ops 281 // using tensors to handle the NULL case, but if they fail to do so 282 // they'll end up with nasty segfaults, so this is public service. 283 PyErr_SetString(PyExc_ValueError, "expected an ndarray, not None"); 284 { 285 __failure = 6; 286 if (!PyErr_Occurred()) { 287 PyErr_SetString(PyExc_RuntimeError, 288 "Unexpected error in an Op's C code. " 289 "No Python exception was set."); 290 } 291 goto __label_6;} 292 } 293 if (!PyArray_Check(py_V5)) { 294 PyErr_SetString(PyExc_ValueError, "expected an ndarray"); 295 { 296 __failure = 6; 297 if (!PyErr_Occurred()) { 298 PyErr_SetString(PyExc_RuntimeError, 299 "Unexpected error in an Op's C code. " 300 "No Python exception was set."); 301 } 302 goto __label_6;} 303 } 304 // We expect NPY_FLOAT32 305 if (!PyArray_ISALIGNED((PyArrayObject*) py_V5)) { 306 PyArrayObject * tmp = (PyArrayObject*) py_V5; 307 PyErr_Format(PyExc_NotImplementedError, 308 "expected an aligned array of type %ld " 309 "(NPY_FLOAT32), got non-aligned array of type %ld" 310 " with %ld dimensions, with 3 last dims " 311 "%ld, %ld, %ld" 312 " and 3 last strides %ld %ld, %ld.", 313 (long int) NPY_FLOAT32, 314 (long int) PyArray_TYPE((PyArrayObject*) py_V5), 315 (long int) PyArray_NDIM(tmp), 316 (long int) (PyArray_NDIM(tmp) >= 3 ? 317 PyArray_DIMS(tmp)[PyArray_NDIM(tmp)-3] : -1), 318 (long int) (PyArray_NDIM(tmp) >= 2 ? 319 PyArray_DIMS(tmp)[PyArray_NDIM(tmp)-2] : -1), 320 (long int) (PyArray_NDIM(tmp) >= 1 ? 321 PyArray_DIMS(tmp)[PyArray_NDIM(tmp)-1] : -1), 322 (long int) (PyArray_NDIM(tmp) >= 3 ? 323 PyArray_STRIDES(tmp)[PyArray_NDIM(tmp)-3] : -1), 324 (long int) (PyArray_NDIM(tmp) >= 2 ? 325 PyArray_STRIDES(tmp)[PyArray_NDIM(tmp)-2] : -1), 326 (long int) (PyArray_NDIM(tmp) >= 1 ? 327 PyArray_STRIDES(tmp)[PyArray_NDIM(tmp)-1] : -1) 328 ); 329 { 330 __failure = 6; 331 if (!PyErr_Occurred()) { 332 PyErr_SetString(PyExc_RuntimeError, 333 "Unexpected error in an Op's C code. " 334 "No Python exception was set."); 335 } 336 goto __label_6;} 337 } 338 // This is a TypeError to be consistent with DEBUG_MODE 339 // Note: DEBUG_MODE also tells the name of the container 340 if (PyArray_TYPE((PyArrayObject*) py_V5) != NPY_FLOAT32) { 341 PyErr_Format(PyExc_TypeError, 342 "expected type_num %d (NPY_FLOAT32) got %d", 343 NPY_FLOAT32, PyArray_TYPE((PyArrayObject*) py_V5)); 344 { 345 __failure = 6; 346 if (!PyErr_Occurred()) { 347 PyErr_SetString(PyExc_RuntimeError, 348 "Unexpected error in an Op's C code. " 349 "No Python exception was set."); 350 } 351 goto __label_6;} 352 } 353 354 V5 = (PyArrayObject*)(py_V5); 355 Py_XINCREF(V5); 356 357 { 358 // Op class Elemwise 359 360 npy_float32* V5_iter; 361 362 npy_float64* V3_iter; 363 364 365 366 npy_float64* V1_iter; 367 368 { 369 npy_intp dims[0]; 370 //npy_intp* dims = (npy_intp*)malloc(0 * sizeof(npy_intp)); 371 372 if (!V1) { 373 V1 = (PyArrayObject*)PyArray_EMPTY(0, dims, 374 NPY_FLOAT64, 375 0); 376 } 377 else { 378 PyArray_Dims new_dims; 379 new_dims.len = 0; 380 new_dims.ptr = dims; 381 PyObject* success = PyArray_Resize(V1, &new_dims, 0, NPY_CORDER); 382 if (!success) { 383 // If we can't resize the ndarray we have we can allocate a new one. 384 PyErr_Clear(); 385 Py_XDECREF(V1); 386 V1 = (PyArrayObject*)PyArray_EMPTY(0, dims, NPY_FLOAT64, 0); 387 } else { 388 Py_DECREF(success); 389 } 390 } 391 if (!V1) { 392 { 393 __failure = 7; 394 if (!PyErr_Occurred()) { 395 PyErr_SetString(PyExc_RuntimeError, 396 "Unexpected error in an Op's C code. " 397 "No Python exception was set."); 398 } 399 goto __label_7;} 400 } 401 } 402 403 404 { 405 406 V5_iter = (npy_float32*)(PyArray_DATA(V5)); 407 V3_iter = (npy_float64*)(PyArray_DATA(V3)); 408 V1_iter = (npy_float64*)(PyArray_DATA(V1)); 409 410 npy_float32& V5_i = *V5_iter; 411 npy_float64& V3_i = *V3_iter; 412 npy_float64& V1_i = *V1_iter; 413 414 V1_i = V5_i / V3_i; 415 416 } 417 __label_7: 418 419 double __DUMMY_7; 420 421 } 422 __label_6: 423 424 if (V5) { 425 Py_XDECREF(V5); 426 } 427 428 {Py_XDECREF(py_V5);} 429 430 double __DUMMY_6; 431 432 } 433 __label_4: 434 435 if (V3) { 436 Py_XDECREF(V3); 437 } 438 439 {Py_XDECREF(py_V3);} 440 441 double __DUMMY_4; 442 443 } 444 __label_2: 445 446 if (!__failure) { 447 448 {Py_XDECREF(py_V1);} 449 if (!V1) { 450 Py_INCREF(Py_None); 451 py_V1 = Py_None; 452 } 453 else if ((void*)py_V1 != (void*)V1) { 454 py_V1 = (PyObject*)V1; 455 } 456 457 {Py_XINCREF(py_V1);} 458 459 if (V1 && !PyArray_ISALIGNED((PyArrayObject*) py_V1)) { 460 PyErr_Format(PyExc_NotImplementedError, 461 "c_sync: expected an aligned array, got non-aligned array of type %ld" 462 " with %ld dimensions, with 3 last dims " 463 "%ld, %ld, %ld" 464 " and 3 last strides %ld %ld, %ld.", 465 (long int) PyArray_TYPE((PyArrayObject*) py_V1), 466 (long int) PyArray_NDIM(V1), 467 (long int) (PyArray_NDIM(V1) >= 3 ? 468 PyArray_DIMS(V1)[PyArray_NDIM(V1)-3] : -1), 469 (long int) (PyArray_NDIM(V1) >= 2 ? 470 PyArray_DIMS(V1)[PyArray_NDIM(V1)-2] : -1), 471 (long int) (PyArray_NDIM(V1) >= 1 ? 472 PyArray_DIMS(V1)[PyArray_NDIM(V1)-1] : -1), 473 (long int) (PyArray_NDIM(V1) >= 3 ? 474 PyArray_STRIDES(V1)[PyArray_NDIM(V1)-3] : -1), 475 (long int) (PyArray_NDIM(V1) >= 2 ? 476 PyArray_STRIDES(V1)[PyArray_NDIM(V1)-2] : -1), 477 (long int) (PyArray_NDIM(V1) >= 1 ? 478 PyArray_STRIDES(V1)[PyArray_NDIM(V1)-1] : -1) 479 ); 480 { 481 __failure = 2; 482 if (!PyErr_Occurred()) { 483 PyErr_SetString(PyExc_RuntimeError, 484 "Unexpected error in an Op's C code. " 485 "No Python exception was set."); 486 } 487 goto __label_2;} 488 } 489 490 PyObject* old = PyList_GET_ITEM(storage_V1, 0); 491 {Py_XINCREF(py_V1);} 492 PyList_SET_ITEM(storage_V1, 0, py_V1); 493 {Py_XDECREF(old);} 494 } 495 496 if (V1) { 497 Py_XDECREF(V1); 498 } 499 500 {Py_XDECREF(py_V1);} 501 502 double __DUMMY_2; 503 504 } 505 506 507 if (__failure) { 508 // When there is a failure, this code puts the exception 509 // in __ERROR. 510 PyObject* err_type = NULL; 511 PyObject* err_msg = NULL; 512 PyObject* err_traceback = NULL; 513 PyErr_Fetch(&err_type, &err_msg, &err_traceback); 514 if (!err_type) {err_type = Py_None;Py_INCREF(Py_None);} 515 if (!err_msg) {err_msg = Py_None; Py_INCREF(Py_None);} 516 if (!err_traceback) {err_traceback = Py_None; Py_INCREF(Py_None);} 517 PyObject* old_err_type = PyList_GET_ITEM(__ERROR, 0); 518 PyObject* old_err_msg = PyList_GET_ITEM(__ERROR, 1); 519 PyObject* old_err_traceback = PyList_GET_ITEM(__ERROR, 2); 520 PyList_SET_ITEM(__ERROR, 0, err_type); 521 PyList_SET_ITEM(__ERROR, 1, err_msg); 522 PyList_SET_ITEM(__ERROR, 2, err_traceback); 523 {Py_XDECREF(old_err_type);} 524 {Py_XDECREF(old_err_msg);} 525 {Py_XDECREF(old_err_traceback);} 526 } 527 // The failure code is returned to index what code block failed. 528 return __failure; 529 530 } 531 }; 532 } 533 534 535 static int __struct_compiled_op_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d_executor(__struct_compiled_op_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d *self) { 536 return self->run(); 537 } 538 539 static void __struct_compiled_op_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d_destructor(PyObject *capsule) { 540 __struct_compiled_op_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d *self = (__struct_compiled_op_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d *)PyCapsule_GetContext(capsule); 541 delete self; 542 } 543 544 ////////////////////// 545 //// Functions 546 ////////////////////// 547 static PyObject * instantiate(PyObject * self, PyObject *argtuple) { 548 assert(PyTuple_Check(argtuple)); 549 if (4 != PyTuple_Size(argtuple)){ 550 PyErr_Format(PyExc_TypeError, "Wrong number of arguments, expected 4, got %i", (int)PyTuple_Size(argtuple)); 551 return NULL; 552 } 553 __struct_compiled_op_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d* struct_ptr = new __struct_compiled_op_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d(); 554 if (struct_ptr->init( PyTuple_GET_ITEM(argtuple, 0),PyTuple_GET_ITEM(argtuple, 1),PyTuple_GET_ITEM(argtuple, 2),PyTuple_GET_ITEM(argtuple, 3) ) != 0) { 555 delete struct_ptr; 556 return NULL; 557 } 558 PyObject* thunk = PyCapsule_New((void*)(&__struct_compiled_op_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d_executor), NULL, __struct_compiled_op_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d_destructor); 559 if (thunk != NULL && PyCapsule_SetContext(thunk, struct_ptr) != 0) { 560 PyErr_Clear(); 561 Py_DECREF(thunk); 562 thunk = NULL; 563 } 564 565 return thunk; } 566 567 ////////////////////// 568 //// Module init 569 ////////////////////// 570 static PyMethodDef MyMethods[] = { 571 {"instantiate", instantiate, METH_VARARGS, "undocumented"} , 572 {NULL, NULL, 0, NULL} 573 }; 574 static struct PyModuleDef moduledef = { 575 PyModuleDef_HEAD_INIT, 576 "m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d", 577 NULL, 578 -1, 579 MyMethods, 580 }; 581 582 PyMODINIT_FUNC PyInit_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d(void) { 583 import_array(); 584 585 PyObject *m = PyModule_Create(&moduledef); 586 return m; 587 } 588 =============================== Problem occurred during compilation with the command line below: "C:\ProgramData\Anaconda3\Library\mingw-w64\bin\g++.exe" -shared -g -O3 -fno-math-errno -Wno-unused-label -Wno-unused-variable -Wno-write-strings -Wno-c++11-narrowing -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -march=broadwell -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit -mno-mwaitx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=generic -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -I"C:\ProgramData\Anaconda3\lib\site-packages\numpy\core\include" -I"C:\ProgramData\Anaconda3\include" -I"C:\Users\Soumya Sahu\AppData\Roaming\Python\Python39\site-packages\theano\link\c\c_code" -L"C:\ProgramData\Anaconda3\libs" -L"C:\ProgramData\Anaconda3" -o "C:\Users\Soumya Sahu\AppData\Local\Theano\compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64\tmp1ikxvyi0\m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d.pyd" "C:\Users\Soumya Sahu\AppData\Local\Theano\compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64\tmp1ikxvyi0\mod.cpp" -lpython39C:\Users\SOUMYA~1\AppData\Local\Temp\cc0L9R3i.o: In function `run': C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:99: undefined reference to `__imp__Py_NoneStruct' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:124: undefined reference to `__imp_PyExc_ValueError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:130: undefined reference to `__imp_PyExc_RuntimeError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:158: undefined reference to `__imp_PyExc_NotImplementedError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:195: undefined reference to `__imp__Py_NoneStruct' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:210: undefined reference to `__imp_PyExc_ValueError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:479: undefined reference to `__imp_PyExc_NotImplementedError' C:\Users\SOUMYA~1\AppData\Local\Temp\cc0L9R3i.o: In function `_Py_INCREF': C:/ProgramData/Anaconda3/include/object.h:408: undefined reference to `__imp__Py_NoneStruct' C:\Users\SOUMYA~1\AppData\Local\Temp\cc0L9R3i.o: In function `run': C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:485: undefined reference to `__imp_PyExc_RuntimeError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:244: undefined reference to `__imp_PyExc_NotImplementedError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:265: undefined reference to `__imp_PyExc_RuntimeError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:173: undefined reference to `__imp_PyExc_TypeError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:179: undefined reference to `__imp_PyExc_RuntimeError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:515: undefined reference to `__imp__Py_NoneStruct' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:514: undefined reference to `__imp__Py_NoneStruct' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:516: undefined reference to `__imp__Py_NoneStruct' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:259: undefined reference to `__imp_PyExc_TypeError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:279: undefined reference to `__imp__Py_NoneStruct' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:294: undefined reference to `__imp_PyExc_ValueError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:328: undefined reference to `__imp_PyExc_NotImplementedError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:349: undefined reference to `__imp_PyExc_RuntimeError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:216: undefined reference to `__imp_PyExc_RuntimeError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:343: undefined reference to `__imp_PyExc_TypeError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:300: undefined reference to `__imp_PyExc_RuntimeError' C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:397: undefined reference to `__imp_PyExc_RuntimeError' C:\Users\SOUMYA~1\AppData\Local\Temp\cc0L9R3i.o: In function `instantiate': C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:550: undefined reference to `__imp_PyExc_TypeError' C:\Users\SOUMYA~1\AppData\Local\Temp\cc0L9R3i.o: In function `_import_array': C:/ProgramData/Anaconda3/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1480: undefined reference to `__imp_PyCapsule_Type' C:/ProgramData/Anaconda3/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1481: undefined reference to `__imp_PyExc_RuntimeError' C:\Users\SOUMYA~1\AppData\Local\Temp\cc0L9R3i.o: In function `PyInit_m31975b6dadb59d49af3f2b36405378825884299512ee0ed9081be33fa591d30d': C:/Users/Soumya Sahu/AppData/Local/Theano/compiledir_Windows-10-10.0.22621-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.9.13-64/tmp1ikxvyi0/mod.cpp:583: undefined reference to `__imp_PyExc_ImportError' C:\Users\SOUMYA~1\AppData\Local\Temp\cc0L9R3i.o: In function `_import_array': C:/ProgramData/Anaconda3/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1512: undefined reference to `__imp_PyExc_RuntimeError' C:/ProgramData/Anaconda3/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1496: undefined reference to `__imp_PyExc_RuntimeError' C:/ProgramData/Anaconda3/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1502: undefined reference to `__imp_PyExc_RuntimeError' C:/ProgramData/Anaconda3/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1524: undefined reference to `__imp_PyExc_RuntimeError' C:/ProgramData/Anaconda3/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1476: undefined reference to `__imp_PyExc_AttributeError' C:/ProgramData/Anaconda3/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1488: undefined reference to `__imp_PyExc_RuntimeError' collect2.exe: error: ld returned 1 exit status